![]() |
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 | |
| __init__ (self, **kwargs) | |
| abort (self) | |
| set_exposure_time (self, value) | |
| get_exposure_time (self) | |
| get_cycle_time (self) | |
| soft_trigger (self) | |
Public Member Functions inherited from microscope._utils.OnlyTriggersOnceOnSoftwareMixin | |
| microscope.TriggerType | trigger_type (self) |
| microscope.TriggerMode | trigger_mode (self) |
| None | set_trigger (self, microscope.TriggerType ttype, microscope.TriggerMode tmode) |
Public Member Functions inherited from microscope.abc.TriggerTargetMixin | |
| None | trigger (self) |
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.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 | 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 | |
| int | _acquiring = 1 |
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 | |
| _set_error_percent (self, value) | |
| _set_gain (self, value) | |
| _purge_buffers (self) | |
| _create_buffers (self) | |
| _fetch_data (self) | |
| _do_disable (self) | |
| _do_enable (self) | |
| _get_sensor_shape (self) | |
| None | _do_trigger (self) |
| _get_binning (self) | |
| _set_binning (self, binning) | |
| _get_roi (self) | |
| _set_roi (self, roi) | |
| None | _do_shutdown (self) |
Protected Member Functions inherited from microscope.abc.TriggerTargetMixin | |
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.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 | |
| _roi = microscope.ROI(0, 0, 512, 512) | |
| _binning = microscope.Binning(1, 1) | |
| _image_generator = _ImageGenerator() | |
| int | _a_setting = 0 |
| int | _error_percent = 0 |
| _set_error_percent | |
| int | _gain = 0 |
| _set_gain | |
| bool | _acquiring = False |
| float | _exposure_time = 0.1 |
| int | _triggered = 0 |
| int | _sent = 0 |
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) | |
Definition at line 154 of file __init__.py.
| microscope.simulators.SimulatedCamera.__init__ | ( | self, | |
| ** | buffer_length ) |
Derived.__init__ must call this at some point.
Reimplemented from microscope.abc.Camera.
Reimplemented in microscope.simulators.stage_aware_camera.StageAwareCamera, and microscope.testsuite.devices.TestCamera.
Definition at line 157 of file __init__.py.
|
protected |
Create buffers and store values needed to remove padding later.
Definition at line 227 of file __init__.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 258 of file __init__.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 261 of file __init__.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 308 of file __init__.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 287 of file __init__.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.
Reimplemented in microscope.simulators.stage_aware_camera.StageAwareCamera.
Definition at line 232 of file __init__.py.
|
protected |
Return the current binning.
Reimplemented from microscope.abc.Camera.
Definition at line 294 of file __init__.py.
|
protected |
Return the ROI as it is on hardware.
Reimplemented from microscope.abc.Camera.
Definition at line 301 of file __init__.py.
|
protected |
Return a tuple of `(width, height)` indicating shape in pixels.
Reimplemented from microscope.abc.Camera.
Definition at line 280 of file __init__.py.
|
protected |
Purge buffers on both camera and PC.
Definition at line 223 of file __init__.py.
|
protected |
Set binning along both axes. Return `True` if successful.
Reimplemented from microscope.abc.Camera.
Definition at line 298 of file __init__.py.
|
protected |
Definition at line 216 of file __init__.py.
|
protected |
Definition at line 220 of file __init__.py.
|
protected |
Set the ROI on the hardware. Return `True` if successful.
Reimplemented from microscope.abc.Camera.
Definition at line 305 of file __init__.py.
| microscope.simulators.SimulatedCamera.abort | ( | self | ) |
Stop acquisition as soon as possible.
Reimplemented from microscope.abc.DataDevice.
Definition at line 253 of file __init__.py.
| microscope.simulators.SimulatedCamera.get_cycle_time | ( | self | ) |
Return the cycle time in seconds.
Reimplemented from microscope.abc.Camera.
Definition at line 277 of file __init__.py.
| microscope.simulators.SimulatedCamera.get_exposure_time | ( | self | ) |
Return the current exposure time in seconds.
Reimplemented from microscope.abc.Camera.
Definition at line 274 of file __init__.py.
| microscope.simulators.SimulatedCamera.set_exposure_time | ( | self, | |
| value ) |
Set the exposure time on the device in seconds.
Reimplemented from microscope.abc.Camera.
Definition at line 271 of file __init__.py.
| microscope.simulators.SimulatedCamera.soft_trigger | ( | self | ) |
Definition at line 283 of file __init__.py.
|
protected |
Definition at line 186 of file __init__.py.
|
protected |
Definition at line 210 of file __init__.py.
| int microscope.simulators.SimulatedCamera._acquiring = 1 |
Definition at line 291 of file __init__.py.
|
protected |
Definition at line 161 of file __init__.py.
|
protected |
Definition at line 194 of file __init__.py.
|
protected |
Definition at line 211 of file __init__.py.
|
protected |
Definition at line 202 of file __init__.py.
|
protected |
Definition at line 163 of file __init__.py.
|
protected |
Definition at line 160 of file __init__.py.
|
protected |
Definition at line 214 of file __init__.py.
|
protected |
Definition at line 199 of file __init__.py.
|
protected |
Definition at line 207 of file __init__.py.
|
protected |
Definition at line 212 of file __init__.py.