public interface MTBSegmentationInterface
A segmentation representation stores for each position within its domain a class label. Labels are assumed to be of positive value or at least equal to zero. It is possible to declare certain positions 'invisible', for example for the purpose of ignoring them in statistical calculations. In addition, each pixel position within the domain of the segmentation can be assigned an individual weight.
Modifier and Type | Interface and Description |
---|---|
static class |
MTBSegmentationInterface.SegmentationDimension
Segmentation dimension datatype.
|
Modifier and Type | Method and Description |
---|---|
int |
getClass(int x,
int y)
Returns the class label of position (x,y).
|
int |
getClass(int x,
int y,
int z)
Returns the class label of position (x,y,z).
|
MTBSegmentationInterface.SegmentationDimension |
getDimension()
Returns the dimension of the segmentation.
|
MTBImage |
getMask(int class_)
Gets the mask of the specified class (0 Background, 255 Foreground)
|
int |
getMaxLabel()
Returns the maximal label used in the segmentation representation.
|
int |
getNumberOfClasses()
Returns the number of classes represented by the segmentation.
|
int |
getSizeX()
Returns the size of the segmentation domain in x direction.
|
int |
getSizeY()
Returns the size of the segmentation domain in y direction.
|
int |
getSizeZ()
Returns the size of the segmentation domain in z direction.
|
double |
getWeight(int x,
int y)
Returns the pixel weight of position (x,y).
|
double |
getWeight(int x,
int y,
int z)
Returns the pixel weight of position (x,y,z).
|
boolean |
isVisible(int x,
int y)
True, if position (x,y) is visible.
|
boolean |
isVisible(int x,
int y,
int z)
True, if position (x,y,z) is visible.
|
void |
setClass(int x,
int y,
int c)
Set the label of position (x,y) to c.
|
void |
setClass(int x,
int y,
int z,
int c)
Set the label of position (x,y,z) to c.
|
void |
setInvisible(int x,
int y)
Set position (x,y) invisible.
|
void |
setInvisible(int x,
int y,
int z)
Set position (x,y,z) invisible.
|
void |
setVisible(int x,
int y)
Set position (x,y) visible.
|
void |
setVisible(int x,
int y,
int z)
Set position (x,y,z) visible.
|
void |
setWeight(int x,
int y,
double c)
Sets the pixel weight of position (x,y) to c.
|
void |
setWeight(int x,
int y,
int z,
double c)
Sets the pixel weight of position (x,y,z) to c.
|
MTBSegmentationInterface.SegmentationDimension getDimension()
int getSizeX()
int getSizeY()
int getSizeZ()
int getNumberOfClasses()
int getMaxLabel()
Note that the maximal label is not required to coincide with the number of classes represented by the segmentation. Labels should usually, but do not necessarily need to be positive.
boolean isVisible(int x, int y)
boolean isVisible(int x, int y, int z)
void setVisible(int x, int y)
void setVisible(int x, int y, int z)
void setInvisible(int x, int y)
void setInvisible(int x, int y, int z)
int getClass(int x, int y)
int getClass(int x, int y, int z)
void setClass(int x, int y, int c)
void setClass(int x, int y, int z, int c)
double getWeight(int x, int y)
double getWeight(int x, int y, int z)
void setWeight(int x, int y, double c)
void setWeight(int x, int y, int z, double c)
MTBImage getMask(int class_)
Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.