de.unihalle.informatik.MiToBo.segmentation.levelset.core
Class MTBLevelsetFunctionDerivable

java.lang.Object
  extended by de.unihalle.informatik.MiToBo.segmentation.levelset.core.MTBLevelsetFunctionDerivable
All Implemented Interfaces:
MTBSegmentationInterface
Direct Known Subclasses:
MTBLevelsetFunctionPDE

public abstract class MTBLevelsetFunctionDerivable
extends Object
implements MTBSegmentationInterface

Level set function supporting optimization based on variational calculus.

Author:
Michael Schneider, Birgit Moeller

Nested Class Summary
 
Nested classes/interfaces inherited from interface de.unihalle.informatik.MiToBo.segmentation.basics.MTBSegmentationInterface
MTBSegmentationInterface.SegmentationDimension
 
Constructor Summary
MTBLevelsetFunctionDerivable()
           
 
Method Summary
abstract  double get(int x, int y, int z)
          Get the function value at position (x,y,z).
abstract  double getCurvature(int x, int y, int z)
          Curvature at point (x,y,z).
abstract  double getDerivativeX(int x, int y, int z)
          Partial derivative in x direction at position (x,y,z).
abstract  double getDerivativeXX(int x, int y, int z)
          Second partial derivative in x direction at position (x,y,z).
abstract  double getDerivativeXY(int x, int y, int z)
          Second partial derivative in x-y direction at position (x,y,z).
abstract  double getDerivativeXZ(int x, int y, int z)
          Second partial derivative in x-z direction at position (x,y,z).
abstract  double getDerivativeY(int x, int y, int z)
          Partial derivative in y direction at position (x,y,z).
abstract  double getDerivativeYY(int x, int y, int z)
          Second partial derivative in y direction at position (x,y,z).
abstract  double getDerivativeYZ(int x, int y, int z)
          Second partial derivative in y-z direction at position (x,y,z).
abstract  double getDerivativeZ(int x, int y, int z)
          Partial derivative in z direction at position (x,y,z).
abstract  double getDerivativeZZ(int x, int y, int z)
          Second partial derivative in z direction at position (x,y,z).
 boolean nearZero(int x, int y, int z)
          Checks if a pixel belongs to the zero level.
protected  int sgn(double val)
          Signum function.
abstract  boolean valid(int x, int y, int z)
          Validity of point (x,y,z).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.unihalle.informatik.MiToBo.segmentation.basics.MTBSegmentationInterface
getClass, getClass, getDimension, getMask, getMaxLabel, getNumberOfClasses, getSizeX, getSizeY, getSizeZ, getWeight, getWeight, isVisible, isVisible, setClass, setClass, setInvisible, setInvisible, setVisible, setVisible, setWeight, setWeight
 

Constructor Detail

MTBLevelsetFunctionDerivable

public MTBLevelsetFunctionDerivable()
Method Detail

get

public abstract double get(int x,
                           int y,
                           int z)
Get the function value at position (x,y,z).

Parameters:
x - Coordinate in x.
y - Coordinate in y.
z - Coordinate in z.
Returns:
Value of level set function at given position.

getDerivativeX

public abstract double getDerivativeX(int x,
                                      int y,
                                      int z)
Partial derivative in x direction at position (x,y,z).

Parameters:
x - Coordinate in x.
y - Coordinate in y.
z - Coordinate in z.
Returns:
Derivative value.

getDerivativeY

public abstract double getDerivativeY(int x,
                                      int y,
                                      int z)
Partial derivative in y direction at position (x,y,z).

Parameters:
x - Coordinate in x.
y - Coordinate in y.
z - Coordinate in z.
Returns:
Derivative value.

getDerivativeZ

public abstract double getDerivativeZ(int x,
                                      int y,
                                      int z)
Partial derivative in z direction at position (x,y,z).

Parameters:
x - Coordinate in x.
y - Coordinate in y.
z - Coordinate in z.
Returns:
Derivative value.

getDerivativeXX

public abstract double getDerivativeXX(int x,
                                       int y,
                                       int z)
Second partial derivative in x direction at position (x,y,z).

Parameters:
x - Coordinate in x.
y - Coordinate in y.
z - Coordinate in z.
Returns:
Derivative value.

getDerivativeYY

public abstract double getDerivativeYY(int x,
                                       int y,
                                       int z)
Second partial derivative in y direction at position (x,y,z).

Parameters:
x - Coordinate in x.
y - Coordinate in y.
z - Coordinate in z.
Returns:
Derivative value.

getDerivativeZZ

public abstract double getDerivativeZZ(int x,
                                       int y,
                                       int z)
Second partial derivative in z direction at position (x,y,z).

Parameters:
x - Coordinate in x.
y - Coordinate in y.
z - Coordinate in z.
Returns:
Derivative value.

getDerivativeXY

public abstract double getDerivativeXY(int x,
                                       int y,
                                       int z)
Second partial derivative in x-y direction at position (x,y,z).

Parameters:
x - Coordinate in x.
y - Coordinate in y.
z - Coordinate in z.
Returns:
Derivative value.

getDerivativeXZ

public abstract double getDerivativeXZ(int x,
                                       int y,
                                       int z)
Second partial derivative in x-z direction at position (x,y,z).

Parameters:
x - Coordinate in x.
y - Coordinate in y.
z - Coordinate in z.
Returns:
Derivative value.

getDerivativeYZ

public abstract double getDerivativeYZ(int x,
                                       int y,
                                       int z)
Second partial derivative in y-z direction at position (x,y,z).

Parameters:
x - Coordinate in x.
y - Coordinate in y.
z - Coordinate in z.
Returns:
Derivative value.

getCurvature

public abstract double getCurvature(int x,
                                    int y,
                                    int z)
Curvature at point (x,y,z).

Parameters:
x - Coordinate in x.
y - Coordinate in y.
z - Coordinate in z.
Returns:
Curvature value.

valid

public abstract boolean valid(int x,
                              int y,
                              int z)
Validity of point (x,y,z).

Parameters:
x - Coordinate in x.
y - Coordinate in y.
z - Coordinate in z.
Returns:
If true, point is valid and will be considered in calculations.

nearZero

public boolean nearZero(int x,
                        int y,
                        int z)
Checks if a pixel belongs to the zero level.

Parameters:
x - x coordinate of point.
y - y coordinate of point.
z - z coordinate of point.
Returns:
True, if point belongs to zero-level, false otherwise.

sgn

protected int sgn(double val)
Signum function.

Parameters:
val - Value to check.
Returns:
1, if value is greater zero, otherwise -1.


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