uk.ac.starlink.jaiutil
Class NDArrayDataByte
java.lang.Object
uk.ac.starlink.jaiutil.NDArrayData
uk.ac.starlink.jaiutil.NDArrayDataByte
public class NDArrayDataByte
- extends NDArrayData
Used for short NDArray data.
- Version:
- $Id$
- Author:
- Allan Brighton, Peter W. Draper
Method Summary |
Raster |
getPreviewImage(Raster tile,
int factor)
Return a prescaled preview image at "1/factor" of the normal
size in the given raster tile. |
Raster |
getTile(Raster tile,
int subsample,
int scaledWidth,
int scaledHeight)
Fill in 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 |
NDArrayDataByte
public NDArrayDataByte(NDArray nda)
throws IOException
- Constructor
- Throws:
IOException
NDArrayDataByte
public NDArrayDataByte(NDArray nda,
int[] axes)
throws IOException
- Constructor
- Throws:
IOException
getTile
public Raster getTile(Raster tile,
int subsample,
int scaledWidth,
int scaledHeight)
throws IOException
- Fill in the given tile with the appropriate image data.
- Specified by:
getTile
in class NDArrayData
- Throws:
IOException
getPreviewImage
public Raster getPreviewImage(Raster tile,
int factor)
throws IOException
- Return a prescaled preview image at "1/factor" of the normal
size in the given raster tile.
- Specified by:
getPreviewImage
in class NDArrayData
- Throws:
IOException
Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.