public abstract class NDArrayData extends Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
NDArrayData(NDArray nda)
Constructor.
|
NDArrayData(NDArray nda,
int[] axes)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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
|
protected ArrayAccess tiler
protected int width
protected int height
protected int naxis
public NDArrayData(NDArray nda) throws IOException
nda
- the NDArrayIOException
public NDArrayData(NDArray nda, int[] axes) throws IOException
nda
- the NDArrayaxes
- an array containing the dimensions of the imageIOException
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 getIOException
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
Copyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.