Constructor and Description |
---|
ClassifiedRegion(ClassifiedRegion copy)
Copying constructor.
|
ClassifiedRegion(int size)
Creates an empty
ClassifiedRegion of the indicated size
(dimensionality). |
ClassifiedRegion(Interval... intervals)
Creates a new region using the given list of intervals.
|
Modifier and Type | Method and Description |
---|---|
void |
addAllClasses(ClassifiedRegion region)
Merges the classes attached to another region with the classes of this
region.
|
void |
addClass(int label)
Add a class, in the form an int value, to this region.
|
int[] |
classArray() |
boolean |
coversClasses(ClassifiedRegion other) |
boolean |
equalsRegion(ClassifiedRegion other)
Test if this region is identical to another region
|
Interval |
get(int index)
Gets the interval of this region for the specified axis (index)
|
boolean |
intersects(ClassifiedRegion other)
Returns true if this region intersects with the provided target region.
|
void |
set(Interval interval,
int index)
Sets the interval of this region for the specified axis (index)
|
int |
size() |
String |
toString() |
public ClassifiedRegion(int size)
ClassifiedRegion
of the indicated size
(dimensionality).public ClassifiedRegion(Interval... intervals)
public ClassifiedRegion(ClassifiedRegion copy)
public void addClass(int label)
public void addAllClasses(ClassifiedRegion region)
public boolean coversClasses(ClassifiedRegion other)
public int[] classArray()
public void set(Interval interval, int index)
public Interval get(int index)
public int size()
public boolean intersects(ClassifiedRegion other)
public boolean equalsRegion(ClassifiedRegion other)
Copyright © 2015–2021 Fiji. All rights reserved.