Class NeighborLabelsPlugin

java.lang.Object
inra.ijpb.plugins.NeighborLabelsPlugin
All Implemented Interfaces:
ij.plugin.PlugIn

public class NeighborLabelsPlugin
extends java.lang.Object
implements ij.plugin.PlugIn
Extract the neighbor regions within a label image from a region label, or a list of region labels.
Author:
dlegland
See Also:
LabelImages.keepLabels(ImagePlus, int[])
  • Constructor Summary

    Constructors
    Constructor Description
    NeighborLabelsPlugin()  
  • Method Summary

    Modifier and Type Method Description
    void run​(java.lang.String arg0)  
    static ij.ImagePlus selectedLabelsToMask​(ij.ImagePlus imagePlus, int[] labels)
    Creates a new image containing only the specified labels.

    Methods inherited from class java.lang.Object

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

    • NeighborLabelsPlugin

      public NeighborLabelsPlugin()
  • Method Details

    • run

      public void run​(java.lang.String arg0)
      Specified by:
      run in interface ij.plugin.PlugIn
    • selectedLabelsToMask

      public static final ij.ImagePlus selectedLabelsToMask​(ij.ImagePlus imagePlus, int[] labels)
      Creates a new image containing only the specified labels.
      Parameters:
      imagePlus - an ImagePlus containing a planar label image
      labels - the list of values to keep
      Returns:
      a new instance of ImagePlus containing only the specified labels