public interface RegionOfInterest
An ROI is a compound entity, for example an Analyze image may contain several regions with distinct integer intensities.
Modifier and Type | Method and Description |
---|---|
boolean |
containsMMPoint(Point3D point)
Tests if a point is within a voxel that contains one or more seed points.
|
boolean |
containsVoxel(int x,
int y,
int z)
Tests to see if a specific voxel is in this region.
|
RegionOfInterest |
getRegion(int index)
Get a specific ROI.
|
int[] |
getRegionLabels()
Get the list of unique region labels in this ROI, ordered from smallest to largest intensity.
|
Point3D[] |
getSeedPoints() |
Voxel[] |
getVoxels() |
int |
numberOfRegions() |
boolean containsVoxel(int x, int y, int z)
x
- the x index of the voxel.y
- the y index of the voxel.z
- the z index of the voxel.Voxel[] getVoxels()
getSeedPoints()
,
so that the same array index corresponds to the voxel containing that seed. This list will
be degenerate if there are multiple seed points within a voxel.boolean containsMMPoint(Point3D point)
point
- the point to test.Point3D[] getSeedPoints()
int numberOfRegions()
RegionOfInterest getRegion(int index)
index
- the index of the required region,
where -1 < index < numberOfRegions()
.int[] getRegionLabels()