Class ConnectedComponents

java.lang.Object
inra.ijpb.binary.ConnectedComponents

@Deprecated
public class ConnectedComponents
extends java.lang.Object
Deprecated.
all methods have been moved to the BinaryImages class
Several static methods for computing connected components in binary images. Results are label images, whose bit-depth can be specified.
  • Constructor Summary

    Constructors
    Constructor Description
    ConnectedComponents()
    Deprecated.
     
  • Method Summary

    Modifier and Type Method Description
    static ij.ImagePlus computeLabels​(ij.ImagePlus imagePlus, int conn, int bitDepth)
    Deprecated.
    replaced by BinaryImages.componentsLabeling(ImagePlus, int, int)
    static ij.ImageStack computeLabels​(ij.ImageStack image, int conn, int bitDepth)
    Deprecated.
    replaced by BinaryImages.componentsLabeling(ImageStack, int, int)
    static ij.process.ImageProcessor computeLabels​(ij.process.ImageProcessor image, int conn, int bitDepth)
    Deprecated.
    replaced by BinaryImages.componentsLabeling(ImageProcessor, int, int)

    Methods inherited from class java.lang.Object

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

    • ConnectedComponents

      public ConnectedComponents()
      Deprecated.
  • Method Details

    • computeLabels

      @Deprecated public static final ij.ImagePlus computeLabels​(ij.ImagePlus imagePlus, int conn, int bitDepth)
      Deprecated.
      replaced by BinaryImages.componentsLabeling(ImagePlus, int, int)
      Computes the labels in the binary 2D or 3D image contained in the given ImagePlus, and computes the maximum label to set up the display range of the resulting ImagePlus.
      Parameters:
      imagePlus - contains the 3D binary image stack
      conn - the connectivity, either 4 or 8 for planar images, or 6 or 26 for 3D images
      bitDepth - the number of bits used to create the result stack (8, 16 or 32)
      Returns:
      an ImagePlus containing the label of each connected component.
    • computeLabels

      @Deprecated public static final ij.process.ImageProcessor computeLabels​(ij.process.ImageProcessor image, int conn, int bitDepth)
      Deprecated.
      replaced by BinaryImages.componentsLabeling(ImageProcessor, int, int)
      Computes the labels of the connected components in the given planar binary image. The type of result is controlled by the bitDepth option.
      Parameters:
      image - contains the binary image (any type is accepted)
      conn - the connectivity, either 4 or 8
      bitDepth - the number of bits used to create the result stack (8, 16 or 32)
      Returns:
      a new instance of ImageProcessor containing the label of each connected component.
    • computeLabels

      @Deprecated public static final ij.ImageStack computeLabels​(ij.ImageStack image, int conn, int bitDepth)
      Deprecated.
      replaced by BinaryImages.componentsLabeling(ImageStack, int, int)
      Computes the labels of the connected components in the given 3D binary image. The type of result is controlled by the bitDepth option.
      Parameters:
      image - contains the 3D binary image (any type is accepted)
      conn - the connectivity, either 6 or 26
      bitDepth - the number of bits used to create the result stack (8, 16 or 32)
      Returns:
      a new instance of ImageStack containing the label of each connected component.