Class Boundary

java.lang.Object
inra.ijpb.label.conncomp.Boundary

public class Boundary
extends java.lang.Object
A boundary between several regions. The boundary is identified by an index (that can be used to populate a label map), and contains a list of integers corresponding to the label of the regions it is adjacent to.
Author:
dlegland
  • Method Summary

    Modifier and Type Method Description
    boolean hasSameRegions​(java.util.Collection<java.lang.Integer> regionLabels)  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Method Details

    • hasSameRegions

      public boolean hasSameRegions​(java.util.Collection<java.lang.Integer> regionLabels)
      Parameters:
      regionLabels - a list of integer labels
      Returns:
      true if the specified labels are the same (not necessarily in the same order) than the labels of regions adjacent to this boundary.
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object