![]() |
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, typing.Optional[str] serial_number=None, **kwargs) |
| abort (self) | |
| None | initialize (self) |
| None | set_exposure_time (self, float value) |
| float | get_exposure_time (self) |
| get_cycle_time (self) | |
| None | soft_trigger (self) |
| microscope.TriggerMode | trigger_mode (self) |
| microscope.TriggerType | trigger_type (self) |
| None | set_trigger (self, microscope.TriggerType ttype, microscope.TriggerMode tmode) |
Public Member Functions inherited from microscope.abc.Camera | |
| set_readout_mode (self, description) | |
| get_transform (self) | |
| set_transform (self, transform) | |
| 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 | |
| None | trigger (self) |
Public Member Functions inherited from microscope.abc.DataDevice | |
| __del__ (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 | 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 | |
| trigger_mode | |
| trigger_type | |
Public Attributes inherited from microscope.abc.Camera | |
| 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 |
Protected Member Functions | |
| typing.Optional[np.ndarray] | _fetch_data (self) |
| _do_disable (self) | |
| _do_enable (self) | |
| typing.Tuple[int, int] | _get_sensor_shape (self) |
| None | _do_trigger (self) |
| microscope.Binning | _get_binning (self) |
| bool | _set_binning (self, microscope.Binning binning) |
| microscope.ROI | _get_roi (self) |
| bool | _set_roi (self, microscope.ROI roi) |
| None | _do_shutdown (self) |
Protected Member Functions inherited from microscope.abc.Camera | |
| _process_data (self, data) | |
| _set_readout_transform (self, new_transform) | |
Protected Member Functions inherited from microscope.abc.TriggerTargetMixin | |
Protected Member Functions inherited from microscope.abc.DataDevice | |
| _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 | |
Protected Attributes | |
| bool | _acquiring = False |
| _handle = xiapi.Camera() | |
| _img = xiapi.Image() | |
| _serial_number = serial_number | |
| tuple | _sensor_shape = (0, 0) |
| str | _roi = microscope.ROI(None, None, None, None) |
| _binning = microscope.Binning(1, 1) | |
Protected Attributes inherited from microscope.abc.Camera | |
| 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 = {} |
Additional Inherited Members | |
Static Public Attributes inherited from microscope.abc.Camera | |
| 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) | |
Ximea cameras
Args:
serial_number: the serial number of the camera to connect to.
It can be set to `None` if there is only camera on the
system.
| None microscope.cameras.ximea.XimeaCamera.__init__ | ( | self, | |
| typing.Optional[str] | buffer_length = None, | ||
| ** | kwargs ) |
Derived.__init__ must call this at some point.
Reimplemented from microscope.abc.Camera.
Definition at line 186 of file ximea.py.
|
protected |
Do any device-specific work on disable. Subclasses should override this method rather than modify `disable`.
Reimplemented from microscope.abc.Device.
Definition at line 335 of file ximea.py.
|
protected |
Do any device specific work on enable. Subclasses should override this method, rather than modify `enable`.
Reimplemented from microscope.abc.Device.
Definition at line 338 of file ximea.py.
|
protected |
Private method - actual shutdown of the device. Users should be calling :meth:`shutdown` and not this method. Concrete implementations should implement this method instead of `shutdown`.
Reimplemented from microscope.abc.Device.
Definition at line 423 of file ximea.py.
|
protected |
Actual trigger of the device. Classes implementing this interface should implement this method instead of `trigger`.
Reimplemented from microscope.abc.TriggerTargetMixin.
Definition at line 368 of file ximea.py.
|
protected |
Poll for data and return it, with minimal processing. If the device uses buffering in software, this function should copy the data from the buffer, release or recycle the buffer, then return a reference to the copy. Otherwise, if the SDK returns a data object that will not be written to again, this function can just return a reference to the object. If no data is available, return `None`.
Reimplemented from microscope.abc.DataDevice.
Definition at line 219 of file ximea.py.
|
protected |
Return the current binning.
Reimplemented from microscope.abc.Camera.
Definition at line 373 of file ximea.py.
|
protected |
Return the ROI as it is on hardware.
Reimplemented from microscope.abc.Camera.
Definition at line 385 of file ximea.py.
|
protected |
Return a tuple of `(width, height)` indicating shape in pixels.
Reimplemented from microscope.abc.Camera.
Definition at line 362 of file ximea.py.
|
protected |
Set binning along both axes. Return `True` if successful.
Reimplemented from microscope.abc.Camera.
Definition at line 376 of file ximea.py.
|
protected |
Set the ROI on the hardware. Return `True` if successful.
Reimplemented from microscope.abc.Camera.
Definition at line 394 of file ximea.py.
| microscope.cameras.ximea.XimeaCamera.abort | ( | self | ) |
Stop acquisition as soon as possible.
Reimplemented from microscope.abc.DataDevice.
Definition at line 246 of file ximea.py.
| microscope.cameras.ximea.XimeaCamera.get_cycle_time | ( | self | ) |
Return the cycle time in seconds.
Reimplemented from microscope.abc.Camera.
Definition at line 359 of file ximea.py.
| float microscope.cameras.ximea.XimeaCamera.get_exposure_time | ( | self | ) |
Return the current exposure time in seconds.
Reimplemented from microscope.abc.Camera.
Definition at line 355 of file ximea.py.
| None microscope.cameras.ximea.XimeaCamera.initialize | ( | self | ) |
Initialise the camera. Open the connection, connect properties and populate settings dict.
Reimplemented from microscope.abc.Device.
Definition at line 259 of file ximea.py.
| None microscope.cameras.ximea.XimeaCamera.set_exposure_time | ( | self, | |
| float | value ) |
Set the exposure time on the device in seconds.
Reimplemented from microscope.abc.Camera.
Definition at line 348 of file ximea.py.
| None microscope.cameras.ximea.XimeaCamera.set_trigger | ( | self, | |
| microscope.TriggerType | ttype, | ||
| microscope.TriggerMode | tmode ) |
Set device for a specific trigger.
Reimplemented from microscope.abc.TriggerTargetMixin.
Definition at line 455 of file ximea.py.
| None microscope.cameras.ximea.XimeaCamera.soft_trigger | ( | self | ) |
| microscope.TriggerMode microscope.cameras.ximea.XimeaCamera.trigger_mode | ( | self | ) |
Reimplemented from microscope.abc.TriggerTargetMixin.
Definition at line 434 of file ximea.py.
| microscope.TriggerType microscope.cameras.ximea.XimeaCamera.trigger_type | ( | self | ) |
Reimplemented from microscope.abc.TriggerTargetMixin.
Definition at line 445 of file ximea.py.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |