![]() |
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) | |
| enable_numbering (self, enab) | |
| get_data_types (self) | |
| data_type (self) | |
| set_data_type (self, index) | |
| get_methods (self) | |
| method (self) | |
| set_method (self, index) | |
| get_image (self, width, height, dark=0, light=255, index=None) | |
| black (self, w, h, dark, light) | |
| white (self, w, h, dark, light) | |
| gradient (self, w, h, dark, light) | |
| noise (self, w, h, dark, light) | |
| one_gaussian (self, w, h, dark, light) | |
| sawtooth (self, w, h, dark, light) | |
Public Attributes | |
| bool | numbering = True |
Protected Attributes | |
| tuple | _methods |
| int | _method_index = 0 |
| tuple | _datatypes = (np.uint8, np.uint16, float) |
| int | _datatype_index = 0 |
| _theta = _theta_generator() | |
| _font = ImageFont.load_default() | |
Generates test images, with methods for configuration via a Setting.
Definition at line 53 of file __init__.py.
| microscope.simulators._ImageGenerator.__init__ | ( | self | ) |
Definition at line 56 of file __init__.py.
| microscope.simulators._ImageGenerator.black | ( | self, | |
| w, | |||
| h, | |||
| dark, | |||
| light ) |
Ignores dark and light - returns zeros
Definition at line 112 of file __init__.py.
| microscope.simulators._ImageGenerator.data_type | ( | self | ) |
Definition at line 79 of file __init__.py.
| microscope.simulators._ImageGenerator.enable_numbering | ( | self, | |
| enab ) |
Definition at line 73 of file __init__.py.
| microscope.simulators._ImageGenerator.get_data_types | ( | self | ) |
Definition at line 76 of file __init__.py.
| microscope.simulators._ImageGenerator.get_image | ( | self, | |
| width, | |||
| height, | |||
| dark = 0, | |||
| light = 255, | |||
| index = None ) |
Return an image using the currently selected method.
Definition at line 97 of file __init__.py.
| microscope.simulators._ImageGenerator.get_methods | ( | self | ) |
Return the names of available image generation methods
Definition at line 85 of file __init__.py.
| microscope.simulators._ImageGenerator.gradient | ( | self, | |
| w, | |||
| h, | |||
| dark, | |||
| light ) |
A single gradient across the whole image from top left to bottom right.
Definition at line 125 of file __init__.py.
| microscope.simulators._ImageGenerator.method | ( | self | ) |
Return the index of the current image generation method.
Definition at line 89 of file __init__.py.
| microscope.simulators._ImageGenerator.noise | ( | self, | |
| w, | |||
| h, | |||
| dark, | |||
| light ) |
Random noise.
Definition at line 130 of file __init__.py.
| microscope.simulators._ImageGenerator.one_gaussian | ( | self, | |
| w, | |||
| h, | |||
| dark, | |||
| light ) |
Definition at line 134 of file __init__.py.
| microscope.simulators._ImageGenerator.sawtooth | ( | self, | |
| w, | |||
| h, | |||
| dark, | |||
| light ) |
A sawtooth gradient that rotates about 0,0.
Definition at line 144 of file __init__.py.
| microscope.simulators._ImageGenerator.set_data_type | ( | self, | |
| index ) |
Definition at line 82 of file __init__.py.
| microscope.simulators._ImageGenerator.set_method | ( | self, | |
| index ) |
Set the image generation method.
Definition at line 93 of file __init__.py.
| microscope.simulators._ImageGenerator.white | ( | self, | |
| w, | |||
| h, | |||
| dark, | |||
| light ) |
Ignores dark and light - returns max value for current data type.
Definition at line 116 of file __init__.py.
|
protected |
Definition at line 67 of file __init__.py.
|
protected |
Definition at line 66 of file __init__.py.
|
protected |
Definition at line 71 of file __init__.py.
|
protected |
Definition at line 65 of file __init__.py.
|
protected |
Definition at line 57 of file __init__.py.
|
protected |
Definition at line 68 of file __init__.py.
| bool microscope.simulators._ImageGenerator.numbering = True |
Definition at line 69 of file __init__.py.