public class BoundarySet extends Object
Constructor and Description |
---|
BoundarySet()
Creates a new (empty) BoundarySet.
|
Modifier and Type | Method and Description |
---|---|
Boundary |
createBoundary(Collection<Integer> neighborLabels)
Creates a new Boundary from the list of adjacent regions, add it to the
set, and returns the new instance of Boundary.
|
Boundary |
findBoundary(Collection<Integer> neighborLabels)
Try to find a Boundary that has same adjacent regions as the ones
specified in the argument.
|
Boundary |
findOrCreateBoundary(Collection<Integer> neighborLabels)
Try to find a Boundary that has same adjacent regions as the ones
specified in the argument.
|
Boundary |
getBoundary(int label)
Retrieve a Boundary from its label.
|
int |
size() |
String |
toString() |
public int size()
public Boundary getBoundary(int label)
label
- the label of the boundarypublic Boundary findOrCreateBoundary(Collection<Integer> neighborLabels)
neighborLabels
- the (integer) labels of the regions adjacent to the boundarypublic Boundary findBoundary(Collection<Integer> neighborLabels)
neighborLabels
- the (integer) labels of the regions adjacent to the boundarypublic Boundary createBoundary(Collection<Integer> neighborLabels)
neighborLabels
- the list of labels of the (usually two) regions adjacent to
the boundary.Copyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.