|
static ROI | CreatePoint (ZCT coord, double x, double y) |
|
static ROI | CreatePoint (int s, int z, int c, int t, 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) |
|
Definition at line 645 of file Bio.cs.
◆ Type
◆ ROI()
◆ AddPoint()
void BioCore.ROI.AddPoint |
( |
PointD |
p | ) |
|
This function adds a point to the list of points that make up the polygon
- Parameters
-
Definition at line 1285 of file Bio.cs.
◆ AddPoints() [1/3]
void BioCore.ROI.AddPoints |
( |
float[] |
xp, |
|
|
float[] |
yp |
|
) |
| |
Adds a range of float points to the Points collection and updates the bounding box
- Parameters
-
p | The points to add to the polygon |
Definition at line 1301 of file Bio.cs.
◆ AddPoints() [2/3]
void BioCore.ROI.AddPoints |
( |
int[] |
xp, |
|
|
int[] |
yp |
|
) |
| |
Adds a range of float points to the Points collection and updates the bounding box
- Parameters
-
p | The points to add to the polygon |
Definition at line 1312 of file Bio.cs.
◆ AddPoints() [3/3]
void BioCore.ROI.AddPoints |
( |
PointD[] |
p | ) |
|
Adds a range of points to the Points collection and updates the bounding box
- Parameters
-
p | The points to add to the polygon |
Definition at line 1293 of file Bio.cs.
◆ Copy() [1/2]
Copy() is a function that copies the values of the ROI object to a new ROI object
- Returns
- A copy of the ROI object.
Definition at line 814 of file Bio.cs.
◆ Copy() [2/2]
ROI BioCore.ROI.Copy |
( |
ZCT |
cord | ) |
|
Copy() is a function that copies the ROI object and returns a new ROI object
- Parameters
-
ZCT | A class that contains the coordinates of the image. |
- Returns
- A copy of the ROI object.
Definition at line 842 of file Bio.cs.
◆ CreateEllipse()
static ROI BioCore.ROI.CreateEllipse |
( |
ZCT |
coord, |
|
|
double |
x, |
|
|
double |
y, |
|
|
double |
w, |
|
|
double |
h |
|
) |
| |
|
static |
Create an ellipse ROI at the specified ZCT coordinate with the specified dimensions
- Parameters
-
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 |
- Returns
- A new ROI object.
Definition at line 1184 of file Bio.cs.
◆ CreateFreeform()
static ROI BioCore.ROI.CreateFreeform |
( |
ZCT |
coord, |
|
|
PointD[] |
pts |
|
) |
| |
|
static |
Create a new ROI object of type Freeform, with the specified ZCT coordinates and points
- Parameters
-
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) |
- Returns
- A new ROI object.
Definition at line 1214 of file Bio.cs.
◆ CreateLine()
Create a line ROI with the specified coordinates
- Parameters
-
ZCT | Z is the Z-axis, C is the color channel, and T is the time frame. |
PointD | A point in the image. |
PointD | A point in the image. |
- Returns
- A new ROI object.
Definition at line 1147 of file Bio.cs.
◆ CreateMask() [1/2]
static ROI BioCore.ROI.CreateMask |
( |
ZCT |
coord, |
|
|
byte[] |
mask, |
|
|
int |
width, |
|
|
int |
height, |
|
|
PointD |
loc, |
|
|
double |
physicalX, |
|
|
double |
physicalY |
|
) |
| |
|
static |
◆ CreateMask() [2/2]
static ROI BioCore.ROI.CreateMask |
( |
ZCT |
coord, |
|
|
float[] |
mask, |
|
|
int |
width, |
|
|
int |
height, |
|
|
PointD |
loc, |
|
|
double |
physicalX, |
|
|
double |
physicalY |
|
) |
| |
|
static |
◆ CreatePoint() [1/2]
static ROI BioCore.ROI.CreatePoint |
( |
int |
s, |
|
|
int |
z, |
|
|
int |
c, |
|
|
int |
t, |
|
|
double |
x, |
|
|
double |
y |
|
) |
| |
|
static |
Create a point ROI at the specified ZCT coordinates and x,y coordinates
- Parameters
-
s | series |
z | the z-slice of the image |
c | channel |
t | timepoint |
x | x coordinate of the point |
y | y-coordinate of the point |
- Returns
- A point ROI
Definition at line 1136 of file Bio.cs.
◆ CreatePoint() [2/2]
static ROI BioCore.ROI.CreatePoint |
( |
ZCT |
coord, |
|
|
double |
x, |
|
|
double |
y |
|
) |
| |
|
static |
Create a new ROI object, add a point to it, and return it
- Parameters
-
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 |
- Returns
- A new ROI object
Definition at line 1117 of file Bio.cs.
◆ CreatePolygon()
static ROI BioCore.ROI.CreatePolygon |
( |
ZCT |
coord, |
|
|
PointD[] |
pts |
|
) |
| |
|
static |
Create a new ROI object of type Polygon, with the given coordinate system and points
- Parameters
-
ZCT | The ZCT coordinate of the ROI. |
pts | an array of PointD objects, which are just a pair of doubles (x,y) |
- Returns
- A ROI object
Definition at line 1199 of file Bio.cs.
◆ CreateRectangle()
static ROI BioCore.ROI.CreateRectangle |
( |
ZCT |
coord, |
|
|
double |
x, |
|
|
double |
y, |
|
|
double |
w, |
|
|
double |
h |
|
) |
| |
|
static |
Create a new ROI object with a rectangle shape, and add a line to the recorder
- Parameters
-
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 |
- Returns
- A new ROI object.
Definition at line 1166 of file Bio.cs.
◆ GetPoint()
PointD BioCore.ROI.GetPoint |
( |
int |
i | ) |
|
This function returns the point at the specified index
- Parameters
-
i | The index of the point to get. |
- Returns
- The point at index i in the Points array.
Definition at line 1258 of file Bio.cs.
◆ GetPointCount()
int BioCore.ROI.GetPointCount |
( |
| ) |
|
This function returns the number of points in the polygon
- Returns
- The number of points in the list.
Definition at line 1343 of file Bio.cs.
◆ GetPoints()
PointD[] BioCore.ROI.GetPoints |
( |
| ) |
|
It returns an array of PointD objects
- Returns
- An array of PointD objects.
Definition at line 1265 of file Bio.cs.
◆ GetPointsF()
System.Drawing.PointF[] BioCore.ROI.GetPointsF |
( |
| ) |
|
It converts a list of points to an array of points
- Returns
- A PointF array.
Definition at line 1272 of file Bio.cs.
◆ GetSelectBound()
RectangleD BioCore.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
- Parameters
-
scale | the scale of the image |
- Returns
- A rectangle with the following properties:
Definition at line 1075 of file Bio.cs.
◆ GetSelectBoxes() [1/2]
It creates a list of rectangles, each rectangle is a square with a side length of ROI.selectBoxSize, and the center of the square is the point in the list of points
- Returns
- A list of RectangleF objects.
Definition at line 1085 of file Bio.cs.
◆ GetSelectBoxes() [2/2]
RectangleD[] BioCore.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
- Parameters
-
s | the size of the select box |
- Returns
- A list of RectangleF objects.
Definition at line 1100 of file Bio.cs.
◆ PointsToString()
string BioCore.ROI.PointsToString |
( |
BioImage |
b | ) |
|
This function takes a BioImage object and returns a string of the points in the image space
- Parameters
-
- Returns
- The points of the polygon in the image space.
Definition at line 1374 of file Bio.cs.
◆ RemovePoints()
void BioCore.ROI.RemovePoints |
( |
int[] |
indexs | ) |
|
It removes points from a list of points based on an array of indexes
- Parameters
-
indexs | an array of integers that represent the indexes of the points to be removed |
Definition at line 1323 of file Bio.cs.
◆ stringToPoints()
PointD[] BioCore.ROI.stringToPoints |
( |
string |
s | ) |
|
It takes a string of points and returns an array of PointD objects
- Parameters
-
s | The string to convert to points. |
- Returns
- A list of points.
Definition at line 1352 of file Bio.cs.
◆ ToString()
override string BioCore.ROI.ToString |
( |
| ) |
|
It returns a string that contains the type of the object, the text, the width and height, and the coordinates of the object
- Returns
- The type of the object, the text, the width, the height, the point, and the coordinates.
Definition at line 1432 of file Bio.cs.
◆ UpdateBoundingBox()
void BioCore.ROI.UpdateBoundingBox |
( |
| ) |
|
It takes the minimum and maximum X and Y values of the points in the shape and uses them to create a bounding box
Definition at line 1389 of file Bio.cs.
◆ UpdatePoint()
void BioCore.ROI.UpdatePoint |
( |
PointD |
p, |
|
|
int |
i |
|
) |
| |
This function updates the point at the specified index
- Parameters
-
PointD | A class that contains an X and Y coordinate. |
i | The index of the point to update |
Definition at line 1245 of file Bio.cs.
◆ BoundingBox
◆ closed
bool BioCore.ROI.closed = false |
◆ coord
◆ fillColor
System.Drawing.Color BioCore.ROI.fillColor |
◆ font
Font BioCore.ROI.font = System.Drawing.SystemFonts.DefaultFont |
◆ id
string BioCore.ROI.id = "" |
◆ isFilled
bool BioCore.ROI.isFilled = false |
◆ properties
string BioCore.ROI.properties |
◆ roiID
string BioCore.ROI.roiID = "" |
◆ roiName
string BioCore.ROI.roiName = "" |
◆ selectBoxSize
float BioCore.ROI.selectBoxSize = 8f |
|
static |
◆ selected
bool BioCore.ROI.selected = false |
◆ selectedPoints
List<int> BioCore.ROI.selectedPoints = new List<int>() |
◆ serie
int BioCore.ROI.serie = 0 |
◆ shapeIndex
int BioCore.ROI.shapeIndex = 0 |
◆ strokeColor
System.Drawing.Color BioCore.ROI.strokeColor |
◆ strokeWidth
double BioCore.ROI.strokeWidth = 1 |
◆ type
◆ Point
◆ PointsD
List<PointD> BioCore.ROI.PointsD |
|
get |
◆ PointsImage
PointD [] BioCore.ROI.PointsImage |
|
get |
◆ Rect
◆ roiMask
◆ Text
◆ TextSize
Size BioCore.ROI.TextSize |
|
get |
The documentation for this class was generated from the following file: