pyfast_adt.main.adaptor.camera.adaptor_us2000
Attributes
Classes
Software interface for the Gatan us2000 camera passing through temscript interface. in general gatan cameras |
Module Contents
- class pyfast_adt.main.adaptor.camera.adaptor_us2000.Cam_us2000(instance_gui=None)
Bases:
pyfast_adt.main.adaptor.camera.adaptor_cam.Cam_baseSoftware interface for the Gatan us2000 camera passing through temscript interface. in general gatan cameras can be used using temscript if they are enabled in Tecnai User Interface
- name = None
- exposure = None
- x = None
- y = None
- processing = None
- delay = None
- binning = None
- buffer_size = None
- buffer = None
- stop_signal = None
- cam = None
- tem = None
- table = None
- dark_bin1 = None
- dark_bin2 = None
- dark_bin4 = None
- dark_bin8 = None
- flatfield_bin1 = None
- flatfield_bin2 = None
- flatfield_bin4 = None
- flatfield_bin8 = None
- last_exposure = 0
- instance_gui = None
- connect()
Connect to the camera.
- initialize_detector()
- load_flatfield()
- acquire_and_save_flatfield(exposure_time, binning)
- release_connection()
‘ release the connection with the device
- get_binning()
get binning value like a conventional CCD camera
- set_binning(binning: int)
set binning value like a conventional CCD camera
- get_image_size()
in temscript image_size control the readout area parameter in the CCDTV Camera tab, from temscript is possible from a 4k**2 cam to reach a 1k**2 cam maximum.
image_size == “FULL” (2k), “HALF” (1k), “QUARTER” (512)
- set_processing(processing: str)
set processing, UNPROCESSED = 0, DEFAULT = 1
- get_processing()
get binning value like a conventional CCD camera
- acquire_image(exposure_time: int, binning: int, processing: str)
Acquire image through its adaptor and return it as np.array.
- acquire_image_and_show(exposure_time: int, binning: int, processing: str)
- rotate_img(img, times=None, flip_h=None, flip_v=None, flip_diag=None)
- stop_liveview() None
‘ stop the live view of the camera
- start_liveview(delay: float = 3.0) None
‘ start the live view of the camera
- set_exposure(exposure_time: int) None
Set exposure time in ms.
- get_exposure() int
Return exposure time in ms.
- acquire_series_images(exposure_time: int, binning: int, processing: str, buffer_size: int, stop_signal, display=False)
- prepare_acquisition_cRED_data(camera, binning, exposure, buffer_size, FPS_devider=1)
“ camera = us4000, binning = one of the available binning for the choosen camera, exposure = choosen exposure, buffer_size = dimension of the stack where saving the output images
- acquisition_cRED_data(stage_thread=None, timer=None, event=None, stop_event=None)
Acquire images into the buffer up to the thread is alive, usually the stage thread is passed for cRED experiments
- save_cRED_data(savingpath, processing='Unprocessed')
- get_camera_characteristic()
- load_calibration_table()
- is_cam_streaming()
True is the camera have a live mode where you can retrieve the images from the memory like the xf416r, otherwise False like the timepix1
- is_cam_bottom_mounted()
True if the camera is mounted on the bottom of the microscope, otherwise False
- prepare_acquire_image_cred(binning, exposure_time)
- acquire_image_cred()
- elaborate_image_cred(img, binning: int, processing: str)
- pyfast_adt.main.adaptor.camera.adaptor_us2000.cam