Class LabelDilation2DShort

java.lang.Object
inra.ijpb.algo.AlgoStub
inra.ijpb.label.distmap.LabelDilation2DShort
All Implemented Interfaces:
Algo

@Deprecated
public class LabelDilation2DShort
extends AlgoStub
Deprecated.
replaced by inra.ijpb.label.filter.ChamferLabelDilation2DShort
Apply a dilation by a specified radius to each label of a label map by constraining the dilation. Labels can not dilate over existing labels. Can be applied to label map encoded with 8 or 16 bits integers, or 32 bit floats.
Author:
dlegland
See Also:
ChamferMask2D, LabelDilation3DShort
  • Constructor Summary

    Constructors
    Constructor Description
    LabelDilation2DShort​(ChamferMask2D mask)
    Deprecated.
    Creates a new image processor for dilating labels using the specified chamfer mask, using 16-bits integer computation.
  • Method Summary

    Modifier and Type Method Description
    ij.process.ImageProcessor process​(ij.process.ImageProcessor labelImage, double distMax)
    Deprecated.
    Computes dilation of labels within label image by a specified radius.

    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

    • LabelDilation2DShort

      public LabelDilation2DShort​(ChamferMask2D mask)
      Deprecated.
      Creates a new image processor for dilating labels using the specified chamfer mask, using 16-bits integer computation.
      Parameters:
      mask - the Chamfer mask to use.
  • Method Details

    • process

      public ij.process.ImageProcessor process​(ij.process.ImageProcessor labelImage, double distMax)
      Deprecated.
      Computes dilation of labels within label image by a specified radius. Labels can not dilate over existing labels. The function returns a new ImageProcessor the same size and the same type as the input, with values greater than or equal to zero.
      Parameters:
      labelImage - the original label map
      distMax - the dilation radius, in pixels. In practice, dilation is computed with a radius +0.5.
      Returns:
      a new label image where each label is dilated over background pixels.