Class LaplacianSegmentationLevelSetImageFilter

java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.LaplacianSegmentationLevelSetImageFilter

public class LaplacianSegmentationLevelSetImageFilter extends ImageFilter
Segments structures in images based on a second derivative image features. IMPORTANT The SegmentationLevelSetImageFilter class and the LaplacianSegmentationLevelSetFunction class contain additional information necessary to the full understanding of how to use this filter. OVERVIEW This class is a level set method segmentation filter. It constructs a speed function which is zero at image edges as detected by a Laplacian filter. The evolving level set front will therefore tend to lock onto zero crossings in the image. The level set front moves fastest near edges. The Laplacian segmentation filter is intended primarily as a tool for refining existing segmentations. The initial isosurface (as given in the seed input image) should ideally be very close to the segmentation boundary of interest. The idea is that a rough segmentation can be refined by allowing the isosurface to deform slightly to achieve a better fit to the edge features of an image. One example of such an application is to refine the output of a hand segmented image. Because values in the Laplacian feature image will tend to be low except near edge features, this filter is not effective for segmenting large image regions from small seed surfaces. INPUTS This filter requires two inputs. The first input is a seed image. This seed image must contain an isosurface that you want to use as the seed for your segmentation. It can be a binary, graylevel, or floating point image. The only requirement is that it contain a closed isosurface that you will identify as the seed by setting the IsosurfaceValue parameter of the filter. For a binary image you will want to set your isosurface value halfway between your on and off values (i.e. for 0's and 1's, use an isosurface value of 0.5). The second input is the feature image. This is the image from which the speed function will be calculated. For most applications, this is the image that you want to segment. The desired isosurface in your seed image should lie within the region of your feature image that you are trying to segment. Note that this filter does no preprocessing of the feature image before thresholding. Because second derivative calculations are highly sensitive to noise, isotropic or anisotropic smoothing of the feature image can dramatically improve the results. See SegmentationLevelSetImageFilter for more information on Inputs. OUTPUTS The filter outputs a single, scalar, real-valued image. Positive values in the output image are inside the segmented region and negative *values in the image are outside of the inside region. The zero crossings of *the image correspond to the position of the level set front. See SparseFieldLevelSetImageFilter and SegmentationLevelSetImageFilter for more information. PARAMETERS This filter has no parameters other than those described in SegmentationLevelSetImageFilter . See: SegmentationLevelSetImageFilter LaplacianSegmentationLevelSetFunction , SparseFieldLevelSetImageFilter itk::simple::LaplacianSegmentationLevelSet for the procedural interface itk::LaplacianSegmentationLevelSetImageFilter for the Doxygen on the original ITK class. C++ includes: sitkLaplacianSegmentationLevelSetImageFilter.h
  • Constructor Details

    • LaplacianSegmentationLevelSetImageFilter

      protected LaplacianSegmentationLevelSetImageFilter(long cPtr, boolean cMemoryOwn)
    • LaplacianSegmentationLevelSetImageFilter

      public LaplacianSegmentationLevelSetImageFilter()
      itk::simple::LaplacianSegmentationLevelSetImageFilter::LaplacianSegmentationLevelSetImageFilter() Default Constructor that takes no arguments and initializes default parameters
  • Method Details

    • getCPtr

      protected static long getCPtr(LaplacianSegmentationLevelSetImageFilter obj)
    • swigRelease

      protected static long swigRelease(LaplacianSegmentationLevelSetImageFilter obj)
    • finalize

      protected void finalize()
      Overrides:
      finalize in class ImageFilter
    • delete

      public void delete()
      virtual itk::simple::LaplacianSegmentationLevelSetImageFilter::~LaplacianSegmentationLevelSetImageFilter() Destructor
      Overrides:
      delete in class ImageFilter
    • setMaximumRMSError

      public void setMaximumRMSError(double MaximumRMSError)
      Self& itk::simple::LaplacianSegmentationLevelSetImageFilter::SetMaximumRMSError(double MaximumRMSError)
    • getMaximumRMSError

      public double getMaximumRMSError()
      double itk::simple::LaplacianSegmentationLevelSetImageFilter::GetMaximumRMSError() const
    • setPropagationScaling

      public void setPropagationScaling(double PropagationScaling)
      Self& itk::simple::LaplacianSegmentationLevelSetImageFilter::SetPropagationScaling(double PropagationScaling)
    • getPropagationScaling

      public double getPropagationScaling()
      double itk::simple::LaplacianSegmentationLevelSetImageFilter::GetPropagationScaling() const
    • setCurvatureScaling

      public void setCurvatureScaling(double CurvatureScaling)
      Self& itk::simple::LaplacianSegmentationLevelSetImageFilter::SetCurvatureScaling(double CurvatureScaling)
    • getCurvatureScaling

      public double getCurvatureScaling()
      double itk::simple::LaplacianSegmentationLevelSetImageFilter::GetCurvatureScaling() const
    • setNumberOfIterations

      public void setNumberOfIterations(long NumberOfIterations)
      Self& itk::simple::LaplacianSegmentationLevelSetImageFilter::SetNumberOfIterations(uint32_t NumberOfIterations)
    • getNumberOfIterations

      public long getNumberOfIterations()
      uint32_t itk::simple::LaplacianSegmentationLevelSetImageFilter::GetNumberOfIterations() const
    • setReverseExpansionDirection

      public void setReverseExpansionDirection(boolean ReverseExpansionDirection)
      Self& itk::simple::LaplacianSegmentationLevelSetImageFilter::SetReverseExpansionDirection(bool ReverseExpansionDirection)
    • reverseExpansionDirectionOn

      public void reverseExpansionDirectionOn()
      Self& itk::simple::LaplacianSegmentationLevelSetImageFilter::ReverseExpansionDirectionOn() Set the value of ReverseExpansionDirection to true or false respectfully.
    • reverseExpansionDirectionOff

      public void reverseExpansionDirectionOff()
      Self& itk::simple::LaplacianSegmentationLevelSetImageFilter::ReverseExpansionDirectionOff()
    • getReverseExpansionDirection

      public boolean getReverseExpansionDirection()
      bool itk::simple::LaplacianSegmentationLevelSetImageFilter::GetReverseExpansionDirection() const
    • getElapsedIterations

      public long getElapsedIterations()
      uint32_t itk::simple::LaplacianSegmentationLevelSetImageFilter::GetElapsedIterations() const Number of iterations run. This is a measurement. Its value is updated in the Execute methods, so the value will only be valid after an execution.
    • getRMSChange

      public double getRMSChange()
      double itk::simple::LaplacianSegmentationLevelSetImageFilter::GetRMSChange() const The Root Mean Square of the levelset upon termination. This is a measurement. Its value is updated in the Execute methods, so the value will only be valid after an execution.
    • getName

      public String getName()
      std::string itk::simple::LaplacianSegmentationLevelSetImageFilter::GetName() const Name of this class
      Overrides:
      getName in class ProcessObject
    • toString

      public String toString()
      std::string itk::simple::LaplacianSegmentationLevelSetImageFilter::ToString() const Print ourselves out
      Overrides:
      toString in class ProcessObject
    • execute

      public Image execute(Image initialImage, Image featureImage)
      Image itk::simple::LaplacianSegmentationLevelSetImageFilter::Execute(Image &&initialImage, const Image &featureImage) Execute the filter on the input image