de.unihalle.informatik.MiToBo.segmentation.basics
Interface MTBSegmentationInterface

All Known Implementing Classes:
MTBLevelsetFunctionDerivable, MTBLevelsetFunctionPDE, MTBSegmentation2D, MTBSegmentation3D, MTBSnake

public interface MTBSegmentationInterface

Interface for representing 2D and 3D segmentations of image data.

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.

Author:
Birgit Moeller

Nested Class Summary
static class MTBSegmentationInterface.SegmentationDimension
          Segmentation dimension datatype.
 
Method Summary
 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.
 

Method Detail

getDimension

MTBSegmentationInterface.SegmentationDimension getDimension()
Returns the dimension of the segmentation.


getSizeX

int getSizeX()
Returns the size of the segmentation domain in x direction.


getSizeY

int getSizeY()
Returns the size of the segmentation domain in y direction.


getSizeZ

int getSizeZ()
Returns the size of the segmentation domain in z direction.


getNumberOfClasses

int getNumberOfClasses()
Returns the number of classes represented by the segmentation.


getMaxLabel

int getMaxLabel()
Returns the maximal label used in the segmentation representation.

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.


isVisible

boolean isVisible(int x,
                  int y)
True, if position (x,y) is visible.


isVisible

boolean isVisible(int x,
                  int y,
                  int z)
True, if position (x,y,z) is visible.


setVisible

void setVisible(int x,
                int y)
Set position (x,y) visible.


setVisible

void setVisible(int x,
                int y,
                int z)
Set position (x,y,z) visible.


setInvisible

void setInvisible(int x,
                  int y)
Set position (x,y) invisible.


setInvisible

void setInvisible(int x,
                  int y,
                  int z)
Set position (x,y,z) invisible.


getClass

int getClass(int x,
             int y)
Returns the class label of position (x,y).


getClass

int getClass(int x,
             int y,
             int z)
Returns the class label of position (x,y,z).


setClass

void setClass(int x,
              int y,
              int c)
Set the label of position (x,y) to c.


setClass

void setClass(int x,
              int y,
              int z,
              int c)
Set the label of position (x,y,z) to c.


getWeight

double getWeight(int x,
                 int y)
Returns the pixel weight of position (x,y).


getWeight

double getWeight(int x,
                 int y,
                 int z)
Returns the pixel weight of position (x,y,z).


setWeight

void setWeight(int x,
               int y,
               double c)
Sets the pixel weight of position (x,y) to c.


setWeight

void setWeight(int x,
               int y,
               int z,
               double c)
Sets the pixel weight of position (x,y,z) to c.


getMask

MTBImage getMask(int class_)
Gets the mask of the specified class (0 Background, 255 Foreground)



Copyright © 2010–2015 Martin Luther University Halle-Wittenberg. All rights reserved.