Class GrayS8

All Implemented Interfaces:
Serializable, Cloneable

public class GrayS8 extends GrayI8<GrayS8>

Image with a pixel type of signed 8-bit integer.

See Also:
  • Constructor Details

    • GrayS8

      public GrayS8(int width, int height)
      Creates a new gray scale (single band/color) image.
      width - number of columns in the image.
      height - number of rows in the image.
    • GrayS8

      public GrayS8()
  • Method Details

    • unsafe_get

      public int unsafe_get(int x, int y)
      Description copied from class: GrayI
      Get function which does not perform bounds checking.
      Specified by:
      unsafe_get in class GrayI<GrayS8>
      x - pixel coordinate.
      y - pixel coordinate.
      an intensity value.
    • getDataType

      public ImageDataType getDataType()
      Description copied from class: ImageGray
      Returns image type information
      getDataType in class GrayI8<GrayS8>
      The type of image.
    • createNew

      public GrayS8 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<GrayS8>
      imgWidth - Width of the new image
      imgHeight - height of the new image
      new image