public class ROI
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected Dataset |
dataset
The underlying data that represents a region of interest
|
protected java.lang.String |
metadata
A text tag for including descriptive metadata
|
protected java.util.List<java.lang.Integer> |
origin
A list of coordinates for the ROI, used to define a "bounding box" that describes the position of the ROI.
|
| Constructor and Description |
|---|
ROI(Dataset dataset,
int start,
int... coords)
Creates a new Region of Interest from the specified data.
|
| Modifier and Type | Method and Description |
|---|---|
Dataset |
getDataset()
Retrieve the ROI data
|
java.lang.String |
getMetadata()
Returns the current metadata for this ROI
|
java.util.List<java.lang.Integer> |
getOrigin()
Returns the origin for the ROI
|
void |
setMetadata(java.lang.String metadata)
Sets the descriptive metadata for this ROI
|
void |
setOrigin(int start,
int... coords)
Sets the bounding box origin for the ROI.
|
java.lang.String |
toString() |
protected Dataset dataset
protected java.util.List<java.lang.Integer> origin
protected java.lang.String metadata
public ROI(Dataset dataset, int start, int... coords)
dataset - data containing the ROIstart - the starting coordinate of the ROI within the datacoords - the remainder of the ROI bounding boxpublic void setOrigin(int start,
int... coords)
start - coordinate of the first dimension in the bounding box e.g. left or x-coordinate of top left corner.coords - additional (start, stop) coordinates for the remaining dimensions of the bounding box.public java.util.List<java.lang.Integer> getOrigin()
public void setMetadata(java.lang.String metadata)
metadata - new metadatapublic java.lang.String getMetadata()
public Dataset getDataset()
public java.lang.String toString()
toString in class java.lang.Object