camera¶
A ctypes based interface to Hamamatsu cameras.
Modified from Zhuang_Lab_Github
Original Notes:
(tested on a sCMOS Flash 4.0).
The documentation is a little confusing to me on this subject. I used c_int32 when this is explicitly specified, otherwise I use c_int.
- FIXME: I’m using the “old” functions because these are documented.
Switch to the “new” functions at some point.
- FIXME: How to stream 2048 x 2048 at max frame rate to the flash disk?
The Hamamatsu software can do this.
Hazen 10/13
- TODO:
Review what is actually needed and get rid of unused functions.
Classes
|
HiSeq Camera. |
-
exception
pyseq.dcam.
DCAMException
(message)¶ Camera exceptions.
-
class
pyseq.dcam.
DCAM_PARAM_PROPERTYATTR
¶ The dcam property attribute structure.
-
class
pyseq.dcam.
DCAM_PARAM_PROPERTYVALUETEXT
¶ The dcam text property structure.
-
class
pyseq.dcam.
HCamData
(size)¶ Hamamatsu camera data object.
-
class
pyseq.dcam.
HamamatsuCamera
(camera_id, logger=None)¶ HiSeq Camera.
-
allocFrame
(n_frames)¶ Allocate memory for n_frames.
- Parameters
n_frame (int): Number of frames to allocate memory for.
Returns: - int: 0 if no errors.
-
getFocusStack
()¶ Return stack of images across all channels.
- Parameters:
image_path (path): Directory to save images.
- Returns:
array: Object array with objective stack images
-
getFrameCount
()¶ Return number of frames (int) that have been taken.
-
getFrameInterval
()¶ Return the frame interval (float, seconds per frame).
-
getFrames
()¶ Gets all of the available frames.
-
get_status
()¶ Return the status of the camera.
The camera must be “ready” to start imaging.
Integer
Status
0
error
1
busy
3
ready
4
unstable
- Returns:
int: Integer corresponding to status of camera.
-
message
(text)¶ Log communication with camera or print to console.
-
saveImage
(image_name, image_path)¶ Gets all of the available frames as numpy array and saves as TIFFs.
-
setAREA
()¶ Switch camera to AREA imaging mode, return True is successful.
-
setTDI
()¶ Switch camera to TDI imaging mode, return True is successful.
-