public class CellCntrMarkerShapeRegion extends CellCntrMarkerShape
| Modifier and Type | Field and Description |
|---|---|
protected MTBRegion2D |
mRegion
Region object representing the shape of the marker.
|
avgIntensity, mBorder| Modifier | Constructor and Description |
|---|---|
private |
CellCntrMarkerShapeRegion()
Default constructor, it's protected to avoid constructing objects
without region data.
|
|
CellCntrMarkerShapeRegion(MTBRegion2D r)
Default constructor with region object.
|
|
CellCntrMarkerShapeRegion(MTBRegion2D r,
MTBBorder2D b)
Constructor with region and border object.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getArea()
Get area of the shape.
|
MTBRegion2D |
getRegion()
Get region representing the shape.
|
getAvgIntensity, getOutline, setAvgIntensityprotected MTBRegion2D mRegion
private CellCntrMarkerShapeRegion()
public CellCntrMarkerShapeRegion(MTBRegion2D r)
Note that the border of the region is extracted in the course of object construction which might be time-consuming if done for many regions. In that case it might be a better idea to extract borders for all regions externally in one run and use the other constructor to which you can pass a border object directly.
r - Region object.public CellCntrMarkerShapeRegion(MTBRegion2D r, MTBBorder2D b)
r - Region object.b - Border object.public double getArea()
CellCntrMarkerShapegetArea in class CellCntrMarkerShapepublic MTBRegion2D getRegion()
Copyright © 2010–2025 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.