BioImager  5.0.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.
Loading...
Searching...
No Matches
microscope.cameras.ximea Namespace Reference

Classes

class  TrgSelectorMap
 
class  TrgSourceMap
 
class  XimeaCamera
 

Functions

 _disabled_camera (camera)
 
 _enabled_camera (camera)
 

Variables

 _logger = logging.getLogger(__name__)
 
int _XI_TIMEOUT = 10
 
int _XI_NOT_SUPPORTED = 12
 
int _XI_NOT_IMPLEMENTED = 26
 
int _XI_ACQUISITION_STOPED = 45
 
int _XI_UNKNOWN_PARAM = 100
 

Function Documentation

◆ _disabled_camera()

microscope.cameras.ximea._disabled_camera ( camera)
protected
Context manager to temporarily disable camera.

Definition at line 95 of file ximea.py.

95def _disabled_camera(camera):
96 """Context manager to temporarily disable camera."""
97 if camera.enabled:
98 try:
99 camera.disable()
100 yield camera
101 finally:
102 camera.enable()
103 else:
104 yield camera
105
106
107@contextlib.contextmanager

◆ _enabled_camera()

microscope.cameras.ximea._enabled_camera ( camera)
protected
Context manager to temporarily enable camera.

Definition at line 108 of file ximea.py.

108def _enabled_camera(camera):
109 """Context manager to temporarily enable camera."""
110 if not camera.enabled:
111 try:
112 camera.enable()
113 yield camera
114 finally:
115 camera.disable()
116 else:
117 yield camera
118
119
120@enum.unique

Variable Documentation

◆ _logger

microscope.cameras.ximea._logger = logging.getLogger(__name__)
protected

Definition at line 71 of file ximea.py.

◆ _XI_ACQUISITION_STOPED

int microscope.cameras.ximea._XI_ACQUISITION_STOPED = 45
protected

Definition at line 81 of file ximea.py.

◆ _XI_NOT_IMPLEMENTED

int microscope.cameras.ximea._XI_NOT_IMPLEMENTED = 26
protected

Definition at line 80 of file ximea.py.

◆ _XI_NOT_SUPPORTED

int microscope.cameras.ximea._XI_NOT_SUPPORTED = 12
protected

Definition at line 79 of file ximea.py.

◆ _XI_TIMEOUT

int microscope.cameras.ximea._XI_TIMEOUT = 10
protected

Definition at line 78 of file ximea.py.

◆ _XI_UNKNOWN_PARAM

int microscope.cameras.ximea._XI_UNKNOWN_PARAM = 100
protected

Definition at line 82 of file ximea.py.