public class Subset extends Image
Constructor and Description |
---|
Subset(Image parent,
int x,
int y,
int nx,
int ny)
Create a two-d subset of a (presumed) 2-d parent.
|
Subset(Image parent,
int x,
int y,
int z,
int nx,
int ny,
int nz)
Create a subset of a parent image.
|
Modifier and Type | Method and Description |
---|---|
void |
clearData()
Clear the data array
|
double |
getData(long npix)
Get a pixels data associated with the image.
|
double[] |
getDataArray()
Get the data as an array.
|
java.lang.String |
getDescription()
Get a description of the object
|
void |
setData(long npix,
double newData)
Set the data associated with the image.
|
void |
setDataArray(double[] newData)
Set the data array
|
static int[][] |
split(Image parent,
int[] index,
int nx,
int ny)
Split an index array into subarrays for each subset.
|
static Image[] |
split(Image parent,
int nx,
int ny)
Split an image into subsets.
|
getBaseImage, getCenter, getCorners, getDepth, getHeight, getName, getTransformer, getWCS, getWidth, initialize, isTiled, setAccumulate, setName, valid, validate
public Subset(Image parent, int x, int y, int nx, int ny) throws TransformationException
TransformationException
public Subset(Image parent, int x, int y, int z, int nx, int ny, int nz) throws TransformationException
TransformationException
public java.lang.String getDescription()
getDescription
in interface Component
getDescription
in class Image
public double getData(long npix)
public double[] getDataArray()
getDataArray
in class Image
public void setData(long npix, double newData)
public void setDataArray(double[] newData)
setDataArray
in class Image
public static Image[] split(Image parent, int nx, int ny) throws TransformationException
TransformationException
public static int[][] split(Image parent, int[] index, int nx, int ny)