|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.jaiutil.NDArrayData
public abstract class NDArrayData
An abstract base class for performing data type specific operations when accessing NDArray data.
Field Summary | |
---|---|
protected int |
height
Height in pixels of the image data |
protected int |
naxis
Number of axes (Currently only the width and height are considered) |
protected ArrayAccess |
tiler
Object used to access the image tiles |
protected int |
width
Width in pixels of the image data |
Constructor Summary | |
---|---|
NDArrayData(NDArray nda)
Constructor. |
|
NDArrayData(NDArray nda,
int[] axes)
Constructor. |
Method Summary | |
---|---|
protected void |
fillTile(Object destArray,
int x,
int y,
int w,
int h)
Fill the given array with image data starting at the given offsets and with the given width and height in image pixels. |
abstract Raster |
getPreviewImage(Raster tile,
int factor)
Return a prescaled preview image at "1/factor" of the normal size in the given raster tile. |
abstract Raster |
getTile(Raster tile,
int subsample,
int width,
int height)
Fill the given tile with the appropriate image data |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ArrayAccess tiler
protected int width
protected int height
protected int naxis
Constructor Detail |
---|
public NDArrayData(NDArray nda) throws IOException
tiler
- the NDArray
IOException
public NDArrayData(NDArray nda, int[] axes) throws IOException
tiler
- the NDArrayaxes
- an array containing the dimensions of the image
IOException
Method Detail |
---|
protected void fillTile(Object destArray, int x, int y, int w, int h) throws IOException
destArray
- the image data arrayx
- the x offset in the image datay
- the y offset in the image dataw
- the width of the data to geth
- the height of the data to get
IOException
public abstract Raster getTile(Raster tile, int subsample, int width, int height) throws IOException
IOException
public abstract Raster getPreviewImage(Raster tile, int factor) throws IOException
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |