pyfast_adt.main.adaptor.camera.adaptor_simulator
Attributes
Classes
Fake Camera interface for debugging purposes. |
Module Contents
- class pyfast_adt.main.adaptor.camera.adaptor_simulator.Cam_simulator(instance_gui=None)
Bases:
pyfast_adt.main.adaptor.camera.adaptor_cam.Cam_baseFake Camera interface for debugging purposes.
- name = None
- exposure = None
- x = None
- y = None
- processing = None
- delay = None
- binning = None
- buffer_size = None
- stop_signal = None
- buffer = None
- table = None
- timings = []
- connect()
‘ connection with the device
- release_connection()
‘ release the connection with the device
- set_exposure(exposure_time: int)
‘ set the exposure time in ms for the camera
- get_exposure()
‘ get the exposure time in ms for the camera
- start_liveview(delay: float)
‘ start the live view of the camera
- stop_liveview()
‘ stop the live view of the camera
- set_binning(binning: int)
‘ set the binning of the camera, common parameters are 1, 2, 4, 8
- get_binning()
‘ get the binning of the camera
- acquire_image(exposure_time: int, binning: int, processing: str)
Acquire image through its adaptor and return it as np.array.
- rotate_img(img, times=None, flip_h=None, flip_v=None)
- set_processing(processing: str)
‘ set the processing of the camera, processing = “Unprocessed, Background subtracted, Gain normalized”
- get_processing()
‘ get the processing typeof the camera
- acquire_series_images(exposure_time: int, binning: int, processing: str, buffer_size: int, stop_signal, display=False)
- prepare_acquisition_cRED_data(camera: str, binning: int, exposure: int, buffer_size, FPS_devider=1)
- acquisition_cRED_data(stage_thread=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: str)
- 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
- enable_streaming()
- image_to_streaming(img)
- pyfast_adt.main.adaptor.camera.adaptor_simulator.cam