![]() |
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, *args, **kwargs) | |
| get_awb_mode (self) | |
| set_awb_mode (self, val) | |
| set_iso_mode (self, val) | |
| HW_trigger (self, channel) | |
| initialize (self) | |
| make_safe (self) | |
| abort (self) | |
| None | set_trigger (self, TriggerType ttype, TriggerMode tmode) |
| TriggerMode | trigger_mode (self) |
| TriggerType | trigger_type (self) |
| setLED (self, state=False) | |
| set_exposure_time (self, value) | |
| get_exposure_time (self) | |
| get_cycle_time (self) | |
| soft_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.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 | |
| camera = None | |
| roi = ROI(None, None, None, None) | |
| float | exposure_time = 0.001 |
| float | cycle_time = self.exposure_time |
| trigger_mode | |
| str | camversion = self.camera.revision |
| tuple | camversion = (2592, 1944) |
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 | |
| _fetch_data (self) | |
| _do_disable (self) | |
| _do_shutdown (self) | |
| _do_enable (self) | |
| _get_roi (self) | |
| _set_binning (self, h_bin, v_bin) | |
| _get_binning (self) | |
| _set_roi (self, left, top, width, height) | |
| _get_sensor_shape (self) | |
| _do_trigger (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 |
| float | _exposure_time = 0.1 |
| bool | _triggered = False |
| _trigger_type = TriggerType.SOFTWARE | |
| _queue = queue.Queue() | |
| _awb_modes = picamera.PiCamera.AWB_MODES | |
| list | _iso_modes = [0, 100, 200, 320, 400, 500, 640, 800] |
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) | |
| microscope.cameras.picam.PiCamera.__init__ | ( | self, | |
| * | buffer_length, | ||
| ** | kwargs ) |
Derived.__init__ must call this at some point.
Reimplemented from microscope.abc.Camera.
Definition at line 51 of file picam.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 168 of file picam.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 175 of file picam.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 171 of file picam.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 260 of file picam.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 136 of file picam.py.
|
protected |
Return the current binning.
Reimplemented from microscope.abc.Camera.
Definition at line 227 of file picam.py.
|
protected |
Return the current ROI (left, top, width, height).
Reimplemented from microscope.abc.Camera.
Definition at line 220 of file picam.py.
|
protected |
Return a tuple of `(width, height)` indicating shape in pixels.
Reimplemented from microscope.abc.Camera.
Definition at line 252 of file picam.py.
|
protected |
Set binning along both axes. Return `True` if successful.
Reimplemented from microscope.abc.Camera.
Definition at line 224 of file picam.py.
|
protected |
Set the ROI to (left, tip, width, height).
Reimplemented from microscope.abc.Camera.
Definition at line 231 of file picam.py.
| microscope.cameras.picam.PiCamera.abort | ( | self | ) |
Stop acquisition as soon as possible.
Reimplemented from microscope.abc.DataDevice.
Definition at line 186 of file picam.py.
| microscope.cameras.picam.PiCamera.get_awb_mode | ( | self | ) |
| microscope.cameras.picam.PiCamera.get_cycle_time | ( | self | ) |
Return the cycle time in seconds.
Reimplemented from microscope.abc.Camera.
Definition at line 247 of file picam.py.
| microscope.cameras.picam.PiCamera.get_exposure_time | ( | self | ) |
Return the current exposure time in seconds.
Reimplemented from microscope.abc.Camera.
Definition at line 243 of file picam.py.
| microscope.cameras.picam.PiCamera.HW_trigger | ( | self, | |
| channel ) |
Function called by GPIO interupt, needs to trigger image capture
Definition at line 130 of file picam.py.
| microscope.cameras.picam.PiCamera.initialize | ( | self | ) |
Initialise the Pi Camera camera. Open the connection, connect properties and populate settings dict.
Reimplemented from microscope.abc.Device.
Definition at line 144 of file picam.py.
| microscope.cameras.picam.PiCamera.make_safe | ( | self | ) |
| microscope.cameras.picam.PiCamera.set_awb_mode | ( | self, | |
| val ) |
| microscope.cameras.picam.PiCamera.set_exposure_time | ( | self, | |
| value ) |
Set the exposure time on the device in seconds.
Reimplemented from microscope.abc.Camera.
Definition at line 239 of file picam.py.
| microscope.cameras.picam.PiCamera.set_iso_mode | ( | self, | |
| val ) |
| None microscope.cameras.picam.PiCamera.set_trigger | ( | self, | |
| TriggerType | ttype, | ||
| TriggerMode | tmode ) |
Set device for a specific trigger.
Reimplemented from microscope.abc.TriggerTargetMixin.
Definition at line 191 of file picam.py.
| microscope.cameras.picam.PiCamera.setLED | ( | self, | |
| state = False ) |
| microscope.cameras.picam.PiCamera.soft_trigger | ( | self | ) |
Definition at line 263 of file picam.py.
| TriggerMode microscope.cameras.picam.PiCamera.trigger_mode | ( | self | ) |
Reimplemented from microscope.abc.TriggerTargetMixin.
Definition at line 209 of file picam.py.
| TriggerType microscope.cameras.picam.PiCamera.trigger_type | ( | self | ) |
Reimplemented from microscope.abc.TriggerTargetMixin.
Definition at line 217 of file picam.py.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| str microscope.cameras.picam.PiCamera.camversion = self.camera.revision |
| tuple microscope.cameras.picam.PiCamera.camversion = (2592, 1944) |
| float microscope.cameras.picam.PiCamera.cycle_time = self.exposure_time |
| float microscope.cameras.picam.PiCamera.exposure_time = 0.001 |
| microscope.cameras.picam.PiCamera.roi = ROI(None, None, None, None) |