Class GrayF64

All Implemented Interfaces:
Serializable, Cloneable

public class GrayF64 extends GrayF<GrayF64>

Image with a pixel type of 64-bit float.

See Also:
  • Field Details

    • data

      public double[] data
  • Constructor Details

    • GrayF64

      public GrayF64(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.
    • GrayF64

      public GrayF64()
      Creates an image with no data declared and the width/height set to zero.
  • Method Details

    • get

      public double get(int x, int y)
      Returns the value of the specified pixel.
      x - pixel coordinate.
      y - pixel coordinate.
      Pixel intensity value.
    • unsafe_get

      public double unsafe_get(int x, int y)
    • set

      public void set(int x, int y, double value)
      Sets the value of the specified pixel.
      x - pixel coordinate.
      y - pixel coordinate.
      value - The pixel's new value.
    • unsafe_set

      public void unsafe_set(int x, int y, double value)
    • forEachPixel

      public void forEachPixel(GrayF64.EachPixel function)
      Passes in the coordinate and value of each pixel in the image.
      function - (Input) The function
    • print

      public void print()
      Description copied from class: ImageGray
      Prints the image to standard out
      Specified by:
      print in class ImageGray<GrayF64>
    • print

      public void print(String format)
    • printInt

      public void printInt()
    • _getData

      protected Object _getData()
      Description copied from class: ImageGray
      Returns the data array the image is stored in.
      Specified by:
      _getData in class ImageGray<GrayF64>
      data array;
    • _setData

      public void _setData(Object data)
      Description copied from class: ImageGray
      Sets the image's internal data array.
      Specified by:
      _setData in class ImageGray<GrayF64>
      data - data array
    • createNew

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

      public void copyCol(int col, int row0, int row1, int offset, Object array)
      Description copied from class: ImageBase
      Copies the column into the array.
      Specified by:
      copyCol in class ImageBase<GrayF64>
      col - Which column to copy.
      row0 - First row. Inclusive.
      row1 - Last row. Exclusive.
      offset - First index in output array
      array - Output array
    • getDataType

      public ImageDataType getDataType()
      Description copied from class: ImageGray
      Returns image type information
      getDataType in class GrayF<GrayF64>
      The type of image.
    • getData

      public double[] getData()
    • setData

      public void setData(double[] data)