![]() |
BioLib
4.3.0
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 | |
| void | Validate (bool convertPixelSpace=false, double physX=1, double physY=1) |
| bool | Contains (PointD p) |
| ROI | Copy () |
| ROI | Copy (ZCT cord) |
| RectangleD | GetSelectBound (double scaleX, double scaleY) |
| ROI () | |
| SKBitmap | ByteArrayToBitmap (byte[] imageBytes) |
| 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 | ConvertToMicron (double physX, double physY) |
| void | AddPoint (PointD p, bool convertPixelSpace=false, double physX=1, double physY=1) |
| void | AddPoints (PointD[] p, bool convertPixelSpace=false, double physX=1, double physY=1) |
| void | AddPoints (int[] xp, int[] yp, bool convertPixelSpace=false, double physX=1, double physY=1) |
| void | AddPoints (float[] xp, float[] yp, bool convertPixelSpace=false, double physX=1, double physY=1) |
| void | RemovePoints (int[] indexs) |
| void | ClearPoints () |
| int | GetPointCount () |
| PointD[] | stringToPoints (string s) |
| string | PointsToString (BioImage b) |
| void | UpdateBoundingBox () |
| override string | ToString () |
| 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, bool useFloatStorage=false, bool absolutePosition=false) |
| static ROI | CreateMask (ZCT coord, Byte[] mask, int width, int height, PointD loc, double physicalX, double physicalY, bool absolutePosition=false, bool preserveDimensions=false) |
| static int | AddROIsToOMERO (long imageId, long user, BioImage b) |
| static java.util.List | BioPointToOmeroPoint (ROI r, BioImage b) |
Public Attributes | |
| Type | type |
| List< int > | selectedPoints = new List<int>() |
| 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 SKPaint | SelectBoxColor = new() { Style = SKPaintStyle.Stroke, Color = new SKColor(255, 0, 0) } |
| static float | selectBoxSize = 14f |
Properties | |
| RectangleD | BoundingBox [get, set] |
| double | X [get] |
| double | Y [get] |
| double | W [get] |
| double | H [get] |
| int | Resolution [get, set] |
| PointD | Point [get] |
| CoordinateSystem | CoordSpace = CoordinateSystem.micron [get, set] |
| List< PointD > | Points [get, set] |
| bool | Selected [get, set] |
| Mask | roiMask [get, set] |
| string | Text [get, set] |
| enum BioLib.ROI.Type |
| BioLib.ROI.ROI | ( | ) |
| void BioLib.ROI.AddPoint | ( | PointD | p, |
| bool | convertPixelSpace = false, | ||
| double | physX = 1, | ||
| double | physY = 1 ) |
| void BioLib.ROI.AddPoints | ( | float[] | xp, |
| float[] | yp, | ||
| bool | convertPixelSpace = false, | ||
| double | physX = 1, | ||
| double | physY = 1 ) |
Adds a range of float points to the Points collection and updates the bounding box
| p | The points to add to the polygon |
| void BioLib.ROI.AddPoints | ( | int[] | xp, |
| int[] | yp, | ||
| bool | convertPixelSpace = false, | ||
| double | physX = 1, | ||
| double | physY = 1 ) |
Adds a range of integer points to the Points collection and updates the bounding box
| p | The points to add to the polygon |
| void BioLib.ROI.AddPoints | ( | PointD[] | p, |
| bool | convertPixelSpace = false, | ||
| double | physX = 1, | ||
| double | physY = 1 ) |
Adds a range of points to the Points collection and updates the bounding box
| p | The points to add to the polygon |
|
static |
| SKBitmap BioLib.ROI.ByteArrayToBitmap | ( | byte[] | imageBytes | ) |
| void BioLib.ROI.ClearPoints | ( | ) |
| bool BioLib.ROI.Contains | ( | PointD | p | ) |
| void BioLib.ROI.ConvertToMicron | ( | double | physX, |
| double | physY ) |
| ROI BioLib.ROI.Copy | ( | ) |
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 |
|
static |
|
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 |
| void BioLib.ROI.Dispose | ( | ) |
| double BioLib.ROI.DistanceTo | ( | PointD | point | ) |
| PointD BioLib.ROI.GetCenter | ( | ) |
| PointD BioLib.ROI.GetPoint | ( | int | i | ) |
| int BioLib.ROI.GetPointCount | ( | ) |
This function returns the number of points in the polygon
| PointD[] BioLib.ROI.GetPoints | ( | ) |
It returns an array of PointD objects
| PointF[] BioLib.ROI.GetPointsF | ( | ) |
| 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 |
| 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 |
| 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 |
| 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. |
| string BioLib.ROI.PointsToString | ( | BioImage | b | ) |
This function takes a BioImage object and returns a string of the points in the image space
| 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 |
| 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. |
| override string BioLib.ROI.ToString | ( | ) |
| void BioLib.ROI.UpdateBoundingBox | ( | ) |
It takes a list of points and returns a rectangle that contains all of the points
| void BioLib.ROI.UpdatePoint | ( | PointD | p, |
| int | i ) |
| void BioLib.ROI.Validate | ( | bool | convertPixelSpace = false, |
| double | physX = 1, | ||
| double | physY = 1 ) |
| bool BioLib.ROI.closed = false |
| ZCT BioLib.ROI.coord |
| string BioLib.ROI.family = "Times New Roman" |
| Color BioLib.ROI.fillColor |
| float BioLib.ROI.fontSize = 12 |
| string BioLib.ROI.id = "" |
| bool BioLib.ROI.isFilled = false |
| string BioLib.ROI.properties = "" |
| string BioLib.ROI.roiID = "" |
| string BioLib.ROI.roiName = "" |
|
static |
|
static |
| List<int> BioLib.ROI.selectedPoints = new List<int>() |
| int BioLib.ROI.serie = 0 |
| int BioLib.ROI.shapeIndex = 0 |
| Cairo.FontSlant BioLib.ROI.slant |
| Color BioLib.ROI.strokeColor |
| double BioLib.ROI.strokeWidth = 1 |
| bool BioLib.ROI.subPixel = false |
| Type BioLib.ROI.type |
| Cairo.FontWeight BioLib.ROI.weight |
|
getset |
|
getset |
|
get |
|
get |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
get |
|
get |
|
get |