Package com.luciad.imaging
Class ALcdBasicImage.Configuration
java.lang.Object
com.luciad.imaging.ALcdImage.Configuration
com.luciad.imaging.ALcdBasicImage.Configuration
- Enclosing class:
ALcdBasicImage
Describes the configuration of an ALcdBasicImage. Image configurations can be
created using the supplied ALcdBasicImage.Configuration.Builder.
The key properties of a basic image are:
Width
andHeight
: the image's dimensions in pixel coordinates.Bounds
: the image's extents in geographic coordinates.Semantics
: describe the image's pixel interpretation and format.Image Reference
: the image's reference.- Tile
column
androw
count, tilewidth
andheight
: indicates if and how the image's internal representation is subdivided into tiles. When reading pixel data out of an image, aligning the reads to the image's tile grid typically results in improved performance. -
Pixel Size (X)
andPixel Size (Y)
: indicates the approximate size of the pixel along the related axis, measured in model coordinates.
- Since:
- 2014.0
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreates a builder which is pre-initialized with the properties of thisConfiguration
.boolean
int
Returns the height of the image in pixels.double
Returns the approximate size of a pixel of the image along the x axis, measured in model coordinates.double
Returns the approximate size of a pixel of the image along the y axis, measured in model coordinates.Returns the sampling mode of the imageint
Returns the width of the tile grid in the image.int
Returns the height of the tiles in the image (in pixels).getTilePixelBounds
(int aTileX, int aTileY) Retrieves the bounds in pixel coordinates for a single tile in the image.int
Returns the height of the tile grid in the image.int
Returns the width of the tiles in the image (in pixels).int
getWidth()
Returns the width of the image in pixels.int
hashCode()
Creates a new, uninitialized builder.toString()
Methods inherited from class com.luciad.imaging.ALcdImage.Configuration
getBounds, getImageReference, getSemantics
-
Method Details
-
getWidth
public int getWidth()Returns the width of the image in pixels.- Returns:
- the width of the image in pixels
-
getHeight
public int getHeight()Returns the height of the image in pixels.- Returns:
- the height of the image in pixels
-
getTileColumnCount
public int getTileColumnCount()Returns the width of the tile grid in the image. For non-tiled images, the width is 1.- Returns:
- the number of tile columns in the image
-
getTileRowCount
public int getTileRowCount()Returns the height of the tile grid in the image. For non-tiled images, the height is 1.- Returns:
- the number of tile rows in the image
-
getTileWidth
public int getTileWidth()Returns the width of the tiles in the image (in pixels). If the image is not tiled, the dimensions are the same as those returned bygetWidth()
andgetHeight()
.- Returns:
- the width of the tiles in the image
-
getTileHeight
public int getTileHeight()Returns the height of the tiles in the image (in pixels). If the image is not tiled, the dimensions are the same as those returned bygetWidth()
andgetHeight()
.- Returns:
- the height of the tiles in the image
-
getPixelSizeX
public double getPixelSizeX()Returns the approximate size of a pixel of the image along the x axis, measured in model coordinates. In case ofpoint-sampled
data this indicates the distance between 2 samples.- Returns:
- the horizontal pixel size of the image
-
getPixelSizeY
public double getPixelSizeY()Returns the approximate size of a pixel of the image along the y axis, measured in model coordinates. In case ofpoint-sampled
data this indicates the distance between 2 samples.- Returns:
- the vertical pixel size of the image
-
getTilePixelBounds
Retrieves the bounds in pixel coordinates for a single tile in the image.- Parameters:
aTileX
- the tile x coordinate in [0,columnCount
[aTileY
- the tile y coordinate in [0,rowCount
[- Returns:
- the region
- Throws:
IllegalArgumentException
- if the tile coordinate is out of bounds
-
getSamplingMode
Returns the sampling mode of the image- Returns:
- the sampling mode
-
equals
- Overrides:
equals
in classALcdImage.Configuration
-
hashCode
public int hashCode()- Overrides:
hashCode
in classALcdImage.Configuration
-
toString
-
newBuilder
Creates a new, uninitialized builder.- Returns:
- a new image configuration builder
-
asBuilder
Creates a builder which is pre-initialized with the properties of thisConfiguration
. This allows the user to create a copy of a configuration and selectively modify properties.- Returns:
- a builder initialized with the properties of this
Configuration
-