Class ChamferLabelErosion2DShort

java.lang.Object
inra.ijpb.algo.AlgoStub
inra.ijpb.label.filter.ChamferLabelErosion2DShort
All Implemented Interfaces:
Algo

public class ChamferLabelErosion2DShort
extends AlgoStub
Implementation of morphological erosion for 2D label images / label maps. Can be applied to label maps encoded with 8 or 16 bits integers, or 32 bit floats.
Author:
dlegland
  • Constructor Summary

    Constructors
    Constructor Description
    ChamferLabelErosion2DShort​(ChamferMask2D mask, double radius)
    Creates a new operator for erosion of label images based on Chamfer masks.
  • Method Summary

    Modifier and Type Method Description
    ij.process.ImageProcessor process​(ij.process.ImageProcessor image)
    Apply morphological erosion of the labels within the specified input image.

    Methods inherited from class inra.ijpb.algo.AlgoStub

    addAlgoListener, removeAlgoListener

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ChamferLabelErosion2DShort

      public ChamferLabelErosion2DShort​(ChamferMask2D mask, double radius)
      Creates a new operator for erosion of label images based on Chamfer masks. The principle is to compute for each non-zero pixel (label), the distance to the nearest background pixel, and to apply a threshold on this distance map.
      Parameters:
      mask - the Chamfer mask use to propagate distances
      radius - the radius used to compute erosion from distance map.
  • Method Details

    • process

      public ij.process.ImageProcessor process​(ij.process.ImageProcessor image)
      Apply morphological erosion of the labels within the specified input image.
      Parameters:
      image - the label map to erode
      Returns:
      the result of erosion.