Class ALcdBasicImage.Configuration

java.lang.Object
com.luciad.imaging.ALcdImage.Configuration
com.luciad.imaging.ALcdBasicImage.Configuration
Enclosing class:
ALcdBasicImage

public static class ALcdBasicImage.Configuration extends ALcdImage.Configuration
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 and Height: 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 and row count, tile width and height: 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) and Pixel Size (Y): indicates the approximate size of the pixel along the related axis, measured in model coordinates.
Since:
2014.0
  • Method Details Link icon

    • getWidth Link icon

      public int getWidth()
      Returns the width of the image in pixels.
      Returns:
      the width of the image in pixels
    • getHeight Link icon

      public int getHeight()
      Returns the height of the image in pixels.
      Returns:
      the height of the image in pixels
    • getTileColumnCount Link icon

      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 Link icon

      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 Link icon

      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 by getWidth() and getHeight().
      Returns:
      the width of the tiles in the image
    • getTileHeight Link icon

      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 by getWidth() and getHeight().
      Returns:
      the height of the tiles in the image
    • getPixelSizeX Link icon

      public double getPixelSizeX()
      Returns the approximate size of a pixel of the image along the x axis, measured in model coordinates.

      In case of point-sampled data this indicates the distance between 2 samples.

      Returns:
      the horizontal pixel size of the image
    • getPixelSizeY Link icon

      public double getPixelSizeY()
      Returns the approximate size of a pixel of the image along the y axis, measured in model coordinates.

      In case of point-sampled data this indicates the distance between 2 samples.

      Returns:
      the vertical pixel size of the image
    • getTilePixelBounds Link icon

      public Rectangle getTilePixelBounds(int aTileX, int aTileY)
      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 Link icon

      public ELcdImageSamplingMode getSamplingMode()
      Returns the sampling mode of the image
      Returns:
      the sampling mode
    • equals Link icon

      public boolean equals(Object o)
      Overrides:
      equals in class ALcdImage.Configuration
    • hashCode Link icon

      public int hashCode()
      Overrides:
      hashCode in class ALcdImage.Configuration
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object
    • newBuilder Link icon

      public static ALcdBasicImage.Configuration.Builder newBuilder()
      Creates a new, uninitialized builder.
      Returns:
      a new image configuration builder
    • asBuilder Link icon

      Creates a builder which is pre-initialized with the properties of this Configuration. 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