![]() |
BioLib
3.6.2
A GUI-less version of Bio .NET library for editing & annotating various microscopy image formats.
|
Represents a Mask layer. More...
Public Member Functions | |
| bool | IsSelected (int x, int y) |
| float | GetValue (int x, int y) |
| void | SetValue (int x, int y, float val) |
| Mask (float[] fts, int width, int height, double physX, double physY, double x, double y) | |
| Mask (byte[] fts, int width, int height, double physX, double physY, double x, double y) | |
| Gdk.Pixbuf | GetColored (AForge.Color col, byte alpha, bool forceUpdate=false) |
| byte[] | GetColoredBytes (AForge.Color col) |
| byte[] | GetBytes () |
| void | Dispose () |
Static Public Member Functions | |
| static byte[] int int int int startY | OutputAs8BitImage (float[] fullMask, int imageWidth, int imageHeight, float threshold=0.0f) |
| static float float max | GetMinAndMax (float[] floatArray) |
| static float[] int int int int startY | CropFullImageMask (float[] fullMask, int imageWidth, int imageHeight, float threshold=0.0f) |
Public Attributes | |
| float | min = 0 |
Static Public Attributes | |
| static byte[] | grayImage |
| Crops a mask based on non-zero values and converts it to an 8-bit grayscale image. | |
| static byte[] int | cropWidth |
| static byte[] int int | cropHeight |
| static byte[] int int int | startX |
| static float | min |
| Gets the minimum and maximum values from a float array. | |
| static float[] | croppedMask |
| Crops the smallest rectangular region containing all "white" pixels (values above a threshold) from a full image mask. | |
| static float[] int | cropWidth |
| static float[] int int | cropHeight |
| static float[] int int int | startX |
Properties | |
| double | X [get, set] |
| double | Y [get, set] |
| int | Width [get, set] |
| int | Height [get, set] |
| double | PhysicalSizeX [get, set] |
| double | PhysicalSizeY [get, set] |
| Gdk.Pixbuf | Pixbuf [get] |
| BioLib.ROI.Mask.Mask | ( | float[] | fts, |
| int | width, | ||
| int | height, | ||
| double | physX, | ||
| double | physY, | ||
| double | x, | ||
| double | y ) |
Definition at line 545 of file Bio.cs.
| BioLib.ROI.Mask.Mask | ( | byte[] | fts, |
| int | width, | ||
| int | height, | ||
| double | physX, | ||
| double | physY, | ||
| double | x, | ||
| double | y ) |
Definition at line 560 of file Bio.cs.
|
static |
Definition at line 813 of file Bio.cs.
| void BioLib.ROI.Mask.Dispose | ( | ) |
| byte[] BioLib.ROI.Mask.GetBytes | ( | ) |
Definition at line 784 of file Bio.cs.
| Gdk.Pixbuf BioLib.ROI.Mask.GetColored | ( | AForge.Color | col, |
| byte | alpha, | ||
| bool | forceUpdate = false ) |
| byte[] BioLib.ROI.Mask.GetColoredBytes | ( | AForge.Color | col | ) |
Definition at line 654 of file Bio.cs.
|
static |
Definition at line 720 of file Bio.cs.
| float BioLib.ROI.Mask.GetValue | ( | int | x, |
| int | y ) |
| bool BioLib.ROI.Mask.IsSelected | ( | int | x, |
| int | y ) |
|
static |
Definition at line 689 of file Bio.cs.
| void BioLib.ROI.Mask.SetValue | ( | int | x, |
| int | y, | ||
| float | val ) |
|
static |
Crops the smallest rectangular region containing all "white" pixels (values above a threshold) from a full image mask.
| fullMask | The input float array representing the entire image mask. |
| imageWidth | The width of the full image. |
| imageHeight | The height of the full image. |
| threshold | The threshold to consider a pixel as "white". |
|
static |
Crops a mask based on non-zero values and converts it to an 8-bit grayscale image.
| fullMask | The input float array representing the full image mask. |
| imageWidth | The width of the full image. |
| imageHeight | The height of the full image. |
| threshold | The threshold to consider a pixel as part of the crop. |
|
static |
|
getset |
|
get |
Definition at line 574 of file Bio.cs.
|
getset |