![]() |
BioLib
3.6.2
A GUI-less version of Bio .NET library for editing & annotating various microscopy image formats.
|
Classes | |
| class | Mask |
| Represents a Mask layer. More... | |
Public Types | |
| enum | Type { Rectangle , Point , Line , Polygon , Polyline , Freeform , Ellipse , Label , Mask } |
| enum | CoordinateSystem { pixel , micron } |
Public Member Functions | |
| ROI | Copy () |
| ROI | Copy (ZCT cord) |
| RectangleD | GetSelectBound (double scaleX, double scaleY) |
| PointD[] | ImagePoints (Resolution res) |
| The function "ImagePoints" takes a Resolution object as input and returns an array of PointD objects that have been converted to image space using the provided resolution values. | |
| RectangleD[] | GetSelectBoxes (double s) |
| RectangleD[] | GetSelectBoxes () |
| PointD | GetCenter () |
| double | DistanceTo (PointD point) |
| void | UpdatePoint (PointD p, int i) |
| PointD | GetPoint (int i) |
| PointD[] | GetPoints () |
| PointF[] | GetPointsF () |
| void | AddPoint (PointD p) |
| void | AddPoints (PointD[] p) |
| void | AddPoints (int[] xp, int[] yp) |
| void | AddPoints (float[] xp, float[] yp) |
| void | RemovePoints (int[] indexs) |
| void | ClearPoints () |
| int | GetPointCount () |
| PointD[] | stringToPoints (string s) |
| string | PointsToString (BioImage b) |
| void | UpdateBoundingBox () |
| void | Dispose () |
Static Public Member Functions | |
| static ROI | CreatePoint (ZCT coord, double x, double y) |
| static ROI | CreateLine (ZCT coord, PointD x1, PointD x2) |
| static ROI | CreateRectangle (ZCT coord, double x, double y, double w, double h) |
| static ROI | CreateEllipse (ZCT coord, double x, double y, double w, double h) |
| static ROI | CreatePolygon (ZCT coord, PointD[] pts) |
| static ROI | CreateFreeform (ZCT coord, PointD[] pts) |
| static ROI | CreateMask (ZCT coord, float[] mask, int width, int height, PointD loc, double physicalX, double physicalY) |
| static ROI | CreateMask (ZCT coord, Byte[] mask, int width, int height, PointD loc, double physicalX, double physicalY) |
Public Attributes | |
| Type | type |
| List< int > | selectedPoints = new List<int>() |
| RectangleD | BoundingBox |
| float | fontSize = 12 |
| Cairo.FontSlant | slant |
| Cairo.FontWeight | weight |
| string | family = "Times New Roman" |
| ZCT | coord |
| Color | strokeColor |
| Color | fillColor |
| bool | isFilled = false |
| string | id = "" |
| string | roiID = "" |
| string | roiName = "" |
| string | properties = "" |
| int | serie = 0 |
| double | strokeWidth = 1 |
| int | shapeIndex = 0 |
| bool | closed = false |
| bool | subPixel = false |
Static Public Attributes | |
| static float | selectBoxSize = 8f |
Properties | |
| PointD | Point [get, set] |
| RectangleD | Rect [get, set] |
| double | X [get, set] |
| double | Y [get, set] |
| double | W [get, set] |
| double | H [get, set] |
| int | Resolution [get, set] |
| List< PointD > | PointsD [get] |
| bool | Selected [get, set] |
| Mask | roiMask [get, set] |
| string | Text [get, set] |
| enum BioLib.ROI.CoordinateSystem |
| enum BioLib.ROI.Type |
| BioLib.ROI.ROI | ( | ) |
| void BioLib.ROI.AddPoint | ( | PointD | p | ) |
Adds a point to the list of points and updates the bounding box
| PointD |
| void BioLib.ROI.AddPoints | ( | float[] | xp, |
| float[] | yp ) |
Adds a range of float points to the Points collection and updates the bounding box
| p | The points to add to the polygon |
Definition at line 1224 of file Bio.cs.
| void BioLib.ROI.AddPoints | ( | int[] | xp, |
| int[] | yp ) |
Adds a range of integer points to the Points collection and updates the bounding box
| p | The points to add to the polygon |
Definition at line 1213 of file Bio.cs.
| void BioLib.ROI.AddPoints | ( | PointD[] | p | ) |
Adds a range of points to the Points collection and updates the bounding box
| p | The points to add to the polygon |
| void BioLib.ROI.ClearPoints | ( | ) |
| ROI BioLib.ROI.Copy | ( | ) |
Definition at line 880 of file Bio.cs.
| ROI BioLib.ROI.Copy | ( | ZCT | cord | ) |
Definition at line 905 of file Bio.cs.
|
static |
Create an ellipse ROI at the specified ZCT coordinate with the specified width and height
| ZCT | The ZCT coordinates of the image you want to create the ROI on. |
| x | x-coordinate of the top-left corner of the rectangle |
| y | The y-coordinate of the upper-left corner of the rectangle to create. |
| w | width |
| h | height |
Definition at line 1081 of file Bio.cs.
|
static |
Create a new ROI object of type Freeform, with the specified ZCT coordinate and points
| ZCT | A class that contains the Z, C, and T coordinates of the ROI. |
| pts | an array of PointD objects, which are just a pair of doubles (x,y) |
Definition at line 1110 of file Bio.cs.
|
static |
Create a new ROI object, set its type to Line, add two points to it, and return it
| ZCT | Z is the Z-axis, C is the color channel, and T is the time frame. |
| PointD | X,Y |
| PointD | X,Y |
Definition at line 1046 of file Bio.cs.
|
static |
Definition at line 1130 of file Bio.cs.
|
static |
Definition at line 1119 of file Bio.cs.
|
static |
Create a new ROI object, add a point to it, and return it
| ZCT | a class that contains the Z, C, and T coordinates of the image. |
| x | x coordinate of the point |
| y | The y coordinate of the point |
Definition at line 1030 of file Bio.cs.
|
static |
Create a new ROI object of type Polygon, with the given coordinate system and points
| ZCT | The ZCT coordinate of the ROI. |
| pts | an array of PointD objects, which are just a pair of doubles (x,y) |
Definition at line 1095 of file Bio.cs.
|
static |
Create a new ROI object with a rectangle shape, and add a line to the recorder
| ZCT | The ZCT coordinates of the image you want to create the ROI on. |
| x | x coordinate of the top left corner of the rectangle |
| y | y-coordinate of the top-left corner of the rectangle |
| w | width |
| h | height |
Definition at line 1064 of file Bio.cs.
| void BioLib.ROI.Dispose | ( | ) |
| double BioLib.ROI.DistanceTo | ( | PointD | point | ) |
| PointD BioLib.ROI.GetCenter | ( | ) |
| PointD BioLib.ROI.GetPoint | ( | int | i | ) |
| int BioLib.ROI.GetPointCount | ( | ) |
| PointD[] BioLib.ROI.GetPoints | ( | ) |
| PointF[] BioLib.ROI.GetPointsF | ( | ) |
It converts a list of points to an array of points
Definition at line 1184 of file Bio.cs.
| RectangleD BioLib.ROI.GetSelectBound | ( | double | scaleX, |
| double | scaleY ) |
This function returns a rectangle that is the bounding box of the object, but with a border of half the scale
| scale | the scale of the image |
Definition at line 951 of file Bio.cs.
| RectangleD[] BioLib.ROI.GetSelectBoxes | ( | ) |
It returns an array of RectangleF objects that are used to draw the selection boxes around the points of the polygon
| s | the size of the select box |
Definition at line 1013 of file Bio.cs.
| RectangleD[] BioLib.ROI.GetSelectBoxes | ( | double | s | ) |
It returns an array of RectangleF objects that are used to draw the selection boxes around the points of the polygon
| s | the size of the select box |
Definition at line 997 of file Bio.cs.
| PointD[] BioLib.ROI.ImagePoints | ( | Resolution | res | ) |
The function "ImagePoints" takes a Resolution object as input and returns an array of PointD objects that have been converted to image space using the provided resolution values.
| Resolution | The "Resolution" parameter is an object that contains information about the resolution of an image. It typically includes properties such as the stage size (width and height), physical size (width and height), and possibly other properties related to the image resolution. |
Definition at line 977 of file Bio.cs.
| string BioLib.ROI.PointsToString | ( | BioImage | b | ) |
This function takes a BioImage object and returns a string of the points in the image space
Definition at line 1290 of file Bio.cs.
| void BioLib.ROI.RemovePoints | ( | int[] | indexs | ) |
It removes points from a list of points based on an array of indexes
| indexs | an array of integers that represent the indexes of the points to be removed |
Definition at line 1235 of file Bio.cs.
| PointD[] BioLib.ROI.stringToPoints | ( | string | s | ) |
It takes a string of points and returns an array of points
| s | The string to convert to points. |
Definition at line 1268 of file Bio.cs.
| void BioLib.ROI.UpdateBoundingBox | ( | ) |
It takes a list of points and returns a rectangle that contains all of the points
Definition at line 1305 of file Bio.cs.
| void BioLib.ROI.UpdatePoint | ( | PointD | p, |
| int | i ) |
This function updates the point at the specified index
| PointD | A class that contains an X and Y coordinate. |
| i | The index of the point to update |
Definition at line 1157 of file Bio.cs.
|
getset |
Definition at line 416 of file Bio.cs.
|
getset |
Definition at line 312 of file Bio.cs.
|
get |
|
getset |
Definition at line 326 of file Bio.cs.
|
getset |
|
getset |
|
getset |
Definition at line 930 of file Bio.cs.
|
getset |
Definition at line 398 of file Bio.cs.
|
getset |
|
getset |