public class TiffRasterData extends Object
| Constructor and Description |
|---|
TiffRasterData(int width,
int height)
Construct an instance allocating memory for the specified dimensions.
|
TiffRasterData(int width,
int height,
float[] data)
Construct an instance allocating memory for the specified dimensions.
|
| Modifier and Type | Method and Description |
|---|---|
float[] |
getData()
Returns a reference to the data array stored in this instance.
|
int |
getHeight()
Gets the height (number of rows) of the raster.
|
TiffRasterStatistics |
getSimpleStatistics()
Tabulates simple statistics for the raster and returns an instance
containing general metadata.
|
TiffRasterStatistics |
getSimpleStatistics(float valueToExclude)
Tabulates simple statistics for the raster excluding the specified value
and returns an instance containing general metadata.
|
float |
getValue(int x,
int y)
Gets the value stored at the specified raster coordinates.
|
int |
getWidth()
Gets the width (number of columns) of the raster.
|
void |
setValue(int x,
int y,
float value)
Sets the value stored at the specified raster coordinates.
|
public TiffRasterData(int width,
int height)
width - a value of 1 or greaterheight - a value of 1 or greaterpublic TiffRasterData(int width,
int height,
float[] data)
width - a value of 1 or greaterheight - a value of 1 or greaterdata - the data to be stored in the raster.public void setValue(int x,
int y,
float value)
x - integer coordinate in the columnar directiony - integer coordinate in the row directionvalue - the value to be stored at the specified location;
potentially a Float.NaN.public float getValue(int x,
int y)
x - integer coordinate in the columnar directiony - integer coordinate in the row directionpublic TiffRasterStatistics getSimpleStatistics()
public TiffRasterStatistics getSimpleStatistics(float valueToExclude)
valueToExclude - exclude samples with this specified value.public int getWidth()
public int getHeight()
public float[] getData()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.