public class Image extends java.lang.Object implements Component
Modifier and Type | Field and Description |
---|---|
protected double[] |
data
The data in the image.
|
Constructor and Description |
---|
Image()
Null constructor to be used in overriding classes
|
Image(double[] data,
WCS wcs,
int width,
int height)
Construct an image given the data and WCS with default depth
|
Image(double[] data,
WCS wcs,
int width,
int height,
int depth)
Construct an image given the data and WCS with specified depth
|
Modifier and Type | Method and Description |
---|---|
void |
clearData()
Clear the data array
|
Image |
getBaseImage()
Get the base image if this is not the working image.
|
double[] |
getCenter(int npix)
Get the center position of the given output pixel
|
double[][] |
getCorners(int npix)
Get the corners of the given output pixel
|
double |
getData(long npix)
Get a pixels data associated with the image.
|
double[] |
getDataArray()
Get the data as an array
|
int |
getDepth()
Get the number of planes in the image
|
java.lang.String |
getDescription()
Get a description of the object
|
int |
getHeight()
Get the height of the image
|
java.lang.String |
getName()
Get the name of the image
|
Transformer |
getTransformer()
Get the transformation to the pixel coordinates of the image
|
WCS |
getWCS()
Get the WCS associated with the image.
|
int |
getWidth()
Get the width of the image
|
void |
initialize(double[] data,
WCS wcs,
int width,
int height,
int depth)
Initialize an image.
|
boolean |
isTiled()
Is this image tiled? I.e., do we read in only
a piece of the image at a time?
|
void |
setAccumulate(boolean flag)
Set the accumulation mode.
|
void |
setData(long npix,
double newData)
Set the Data associated with the image.
|
void |
setDataArray(double[] newData)
Set the data array
|
protected void |
setName(java.lang.String name)
set the name of the image
|
boolean |
valid()
Is this image fully available?
|
void |
validate()
Make sure the image is ready for detailed use.
|
public Image()
public Image(double[] data, WCS wcs, int width, int height) throws TransformationException
TransformationException
public Image(double[] data, WCS wcs, int width, int height, int depth) throws TransformationException
TransformationException
public java.lang.String getName()
protected void setName(java.lang.String name)
public java.lang.String getDescription()
getDescription
in interface Component
public void initialize(double[] data, WCS wcs, int width, int height, int depth) throws TransformationException
TransformationException
public WCS getWCS()
public double getData(long npix)
public double[] getDataArray()
public void setAccumulate(boolean flag)
public void setData(long npix, double newData)
public void clearData()
public void setDataArray(double[] newData)
public Transformer getTransformer()
public int getWidth()
public int getHeight()
public int getDepth()
public double[] getCenter(int npix)
public double[][] getCorners(int npix)
public void validate()
public boolean valid()
public boolean isTiled()
public Image getBaseImage()