![]() |
BioImager
4.9.0
A .NET microscopy imaging application based on Bio library. Supports various microscopes by using imported libraries & GUI automation. Supports XInput game controllers to move stage, take images, run ImageJ macros on images or Bio C# scripts.
|
Public Member Functions | |
| None | __init__ (self, **kwargs) |
| set_readout_mode (self, description) | |
| get_transform (self) | |
| set_transform (self, transform) | |
| None | set_exposure_time (self, float value) |
| float | get_exposure_time (self) |
| float | get_cycle_time (self) |
| typing.Tuple[int, int] | get_sensor_shape (self) |
| microscope.Binning | get_binning (self) |
| None | set_binning (self, microscope.Binning binning) |
| microscope.ROI | get_roi (self) |
| None | set_roi (self, microscope.ROI roi) |
Public Member Functions inherited from microscope.abc.TriggerTargetMixin | |
| microscope.TriggerMode | trigger_mode (self) |
| microscope.TriggerType | trigger_type (self) |
| None | set_trigger (self, microscope.TriggerType ttype, microscope.TriggerMode tmode) |
| None | trigger (self) |
Public Member Functions inherited from microscope.abc.DataDevice | |
| __del__ (self) | |
| None | abort (self) |
| None | enable (self) |
| None | disable (self) |
| None | set_client (self, new_client) |
| None | update_settings (self, settings, bool init=False) |
| None | receiveClient (self, str client_uri) |
| grab_next_data (self, bool soft_trigger=True) | |
| None | receiveData (self, data, timestamp) |
Public Member Functions inherited from microscope.abc.Device | |
| bool | get_is_enabled (self) |
| None | initialize (self) |
| None | shutdown (self) |
| None | add_setting (self, name, dtype, get_func, set_func, values, typing.Optional[typing.Callable[[], bool]] readonly=None) |
| get_setting (self, str name) | |
| get_all_settings (self) | |
| None | set_setting (self, str name, value) |
| describe_setting (self, str name) | |
| describe_settings (self) | |
Public Attributes | |
| set_readout_mode | |
| get_roi | |
| set_roi | |
Public Attributes inherited from microscope.abc.DataDevice | |
| bool | enabled = False |
| bool | _fetch_thread = True |
| bool | _dispatch_thread = True |
| None | _fetch_thread_run = self._fetch_data() |
Public Attributes inherited from microscope.abc.Device | |
| bool | enabled = False |
Static Public Attributes | |
| list | ALLOWED_TRANSFORMS = [p for p in itertools.product(*3 * [[False, True]])] |
Static Public Attributes inherited from microscope.abc.DataDevice | |
| set_setting = keep_acquiring(Device.set_setting) | |
Protected Member Functions | |
| _process_data (self, data) | |
| _set_readout_transform (self, new_transform) | |
| typing.Tuple[int, int] | _get_sensor_shape (self) |
| microscope.Binning | _get_binning (self) |
| _set_binning (self, microscope.Binning binning) | |
| microscope.ROI | _get_roi (self) |
| _set_roi (self, microscope.ROI roi) | |
Protected Member Functions inherited from microscope.abc.TriggerTargetMixin | |
| None | _do_trigger (self) |
Protected Member Functions inherited from microscope.abc.DataDevice | |
| None | _fetch_data (self) |
| _send_data (self, client, data, timestamp) | |
| None | _dispatch_loop (self) |
| None | _fetch_loop (self) |
| _client (self) | |
| _client (self, val) | |
| None | _put (self, data, timestamp) |
Protected Member Functions inherited from microscope.abc.Device | |
| _do_disable (self) | |
| _do_enable (self) | |
| None | _do_shutdown (self) |
Protected Attributes | |
| list | _readout_modes = ["default"] |
| int | _readout_mode = 0 |
| tuple | _readout_transform = (False, False, False) |
| tuple | _client_transform = (False, False, False) |
| tuple | _transform = (False, False, False) |
Protected Attributes inherited from microscope.abc.DataDevice | |
| _fetch_thread = None | |
| bool | _fetch_thread_run = False |
| bool | _using_callback = False |
| list | _clientStack = [] |
| _liveClients = set() | |
| _dispatch_thread = None | |
| _dispatch_buffer = queue.Queue(maxsize=buffer_length) | |
| bool | _acquiring = False |
| _new_data_condition = threading.Condition() | |
| _client = None | |
| tuple | _new_data = (data, timestamp) |
Protected Attributes inherited from microscope.abc.Device | |
| dict | _settings = {} |
Adds functionality to :class:`DataDevice` to support cameras. Defines the interface for cameras. Applies a transform to acquired data in the processing step.
| None microscope.abc.Camera.__init__ | ( | self, | |
| ** | buffer_length ) |
Derived.__init__ must call this at some point.
Reimplemented from microscope.abc.DataDevice.
Reimplemented in microscope.cameras.picam.PiCamera, microscope.cameras.ximea.XimeaCamera, microscope.simulators.SimulatedCamera, microscope.simulators.stage_aware_camera.StageAwareCamera, and microscope.testsuite.devices.TestCamera.
Definition at line 829 of file abc.py.
|
protected |
Return the current binning.
Reimplemented in microscope.cameras.andorsdk3.AndorSDK3, microscope.cameras.atmcd.AndorAtmcd, microscope.cameras.picam.PiCamera, microscope.cameras.pvcam.PVCamera, microscope.cameras.ximea.XimeaCamera, and microscope.simulators.SimulatedCamera.
Definition at line 929 of file abc.py.
|
protected |
Return the ROI as it is on hardware.
Reimplemented in microscope.cameras.andorsdk3.AndorSDK3, microscope.cameras.atmcd.AndorAtmcd, microscope.cameras.picam.PiCamera, microscope.cameras.pvcam.PVCamera, microscope.cameras.ximea.XimeaCamera, and microscope.simulators.SimulatedCamera.
Definition at line 957 of file abc.py.
|
protected |
Return a tuple of `(width, height)` indicating shape in pixels.
Reimplemented in microscope.cameras.andorsdk3.AndorSDK3, microscope.cameras.atmcd.AndorAtmcd, microscope.cameras.picam.PiCamera, microscope.cameras.pvcam.PVCamera, microscope.cameras.ximea.XimeaCamera, and microscope.simulators.SimulatedCamera.
Definition at line 916 of file abc.py.
|
protected |
Apply self._transform to data.
Reimplemented from microscope.abc.DataDevice.
Definition at line 859 of file abc.py.
|
protected |
Set binning along both axes. Return `True` if successful.
Reimplemented in microscope.cameras.andorsdk3.AndorSDK3, microscope.cameras.atmcd.AndorAtmcd, microscope.cameras.picam.PiCamera, microscope.cameras.pvcam.PVCamera, microscope.cameras.ximea.XimeaCamera, and microscope.simulators.SimulatedCamera.
Definition at line 942 of file abc.py.
|
protected |
Update readout transform and update resultant transform.
Definition at line 897 of file abc.py.
|
protected |
Set the ROI on the hardware. Return `True` if successful.
Reimplemented in microscope.cameras.andorsdk3.AndorSDK3, microscope.cameras.atmcd.AndorAtmcd, microscope.cameras.picam.PiCamera, microscope.cameras.pvcam.PVCamera, microscope.cameras.ximea.XimeaCamera, and microscope.simulators.SimulatedCamera.
Definition at line 970 of file abc.py.
| microscope.Binning microscope.abc.Camera.get_binning | ( | self | ) |
Return the current binning corrected for transform.
Definition at line 933 of file abc.py.
| float microscope.abc.Camera.get_cycle_time | ( | self | ) |
Return the cycle time in seconds.
Reimplemented in microscope.cameras.andorsdk3.AndorSDK3, microscope.cameras.atmcd.AndorAtmcd, microscope.cameras.picam.PiCamera, microscope.cameras.pvcam.PVCamera, microscope.cameras.ximea.XimeaCamera, and microscope.simulators.SimulatedCamera.
Definition at line 911 of file abc.py.
| float microscope.abc.Camera.get_exposure_time | ( | self | ) |
Return the current exposure time in seconds.
Reimplemented in microscope.cameras.andorsdk3.AndorSDK3, microscope.cameras.atmcd.AndorAtmcd, microscope.cameras.picam.PiCamera, microscope.cameras.pvcam.PVCamera, microscope.cameras.ximea.XimeaCamera, and microscope.simulators.SimulatedCamera.
Definition at line 907 of file abc.py.
| microscope.ROI microscope.abc.Camera.get_roi | ( | self | ) |
Return current ROI.
Definition at line 961 of file abc.py.
| typing.Tuple[int, int] microscope.abc.Camera.get_sensor_shape | ( | self | ) |
Return a tuple of `(width, height)` corrected for transform.
Definition at line 920 of file abc.py.
| microscope.abc.Camera.get_transform | ( | self | ) |
| None microscope.abc.Camera.set_binning | ( | self, | |
| microscope.Binning | binning ) |
Set binning along both axes. Return `True` if successful.
Definition at line 946 of file abc.py.
| None microscope.abc.Camera.set_exposure_time | ( | self, | |
| float | value ) |
Set the exposure time on the device in seconds.
Reimplemented in microscope.cameras.andorsdk3.AndorSDK3, microscope.cameras.atmcd.AndorAtmcd, microscope.cameras.picam.PiCamera, microscope.cameras.pvcam.PVCamera, microscope.cameras.ximea.XimeaCamera, and microscope.simulators.SimulatedCamera.
Definition at line 903 of file abc.py.
| microscope.abc.Camera.set_readout_mode | ( | self, | |
| description ) |
Set the readout mode and _readout_transform.
Reimplemented in microscope.cameras.pvcam.PVCamera.
Definition at line 876 of file abc.py.
| None microscope.abc.Camera.set_roi | ( | self, | |
| microscope.ROI | roi ) |
Set the ROI according to the provided rectangle. Return True if ROI set correctly, False otherwise.
Definition at line 974 of file abc.py.
| microscope.abc.Camera.set_transform | ( | self, | |
| transform ) |
Combine provided transform with readout transform.
Definition at line 884 of file abc.py.
|
protected |
|
protected |
|
protected |
|
static |
| microscope.abc.Camera.set_readout_mode |
Reimplemented in microscope.cameras.pvcam.PVCamera.