Class InterleavedS16

All Implemented Interfaces:
Serializable, Cloneable

public class InterleavedS16 extends InterleavedI16<InterleavedS16>

An image where the primitive type is an unsigned short.

See Also:
  • Constructor Details

    • InterleavedS16

      public InterleavedS16(int width, int height, int numBands)
      Creates a new image with an arbitrary number of bands/colors.
      Parameters:
      width - number of columns in the image.
      height - number of rows in the image.
      numBands - number of bands/colors in the image.
    • InterleavedS16

      public InterleavedS16()
  • Method Details

    • unsafe_get

      public void unsafe_get(int x, int y, int[] storage)
      Specified by:
      unsafe_get in class InterleavedInteger<InterleavedS16>
    • getDataType

      public ImageDataType getDataType()
      Description copied from class: ImageInterleaved
      Returns image type information
      Overrides:
      getDataType in class InterleavedI16<InterleavedS16>
      Returns:
      The type of image.
    • getBand

      public int getBand(int x, int y, int band)
      Returns the value of the specified band in the specified pixel.
      Specified by:
      getBand in class InterleavedInteger<InterleavedS16>
      Parameters:
      x - pixel coordinate.
      y - pixel coordinate.
      band - which color band in the pixel
      Returns:
      an intensity value.
    • getArrayValue

      protected int getArrayValue(int index)
      Specified by:
      getArrayValue in class InterleavedInteger<InterleavedS16>
    • createNew

      public InterleavedS16 createNew(int imgWidth, int imgHeight)
      Description copied from class: ImageBase
      Returns a new image. If either width or height are set to -1 then none of the class parameters set. Otherwise a new image is created with the specified dimensions which has all other parameters the same as the original matrix.
      Specified by:
      createNew in class ImageBase<InterleavedS16>
      Parameters:
      imgWidth - Width of the new image
      imgHeight - height of the new image
      Returns:
      new image