Interface SimpleModifiableImage

All Superinterfaces:
SimpleImage
All Known Implementing Classes:
PixelImageIJ

public interface SimpleModifiableImage extends SimpleImage
A minimal interface to define a means to provide access to pixel values from a 2D, 1-channel image.
Author:
Pete Bankhead
  • Method Summary

    Modifier and Type
    Method
    Description
    float[]
    getArray(boolean direct)
    Request the pixel array representing all the pixels in this image, returned row-wise.
    void
    setValue(int x, int y, float val)
    Set the value of a single pixel.

    Methods inherited from interface qupath.lib.analysis.images.SimpleImage

    getHeight, getValue, getWidth
  • Method Details

    • setValue

      void setValue(int x, int y, float val)
      Set the value of a single pixel.
      Parameters:
      x - x-coordinate of the pixel to set
      y - y-coordinate of the pixel to set
      val - new pixel value
    • getArray

      float[] getArray(boolean direct)
      Request the pixel array representing all the pixels in this image, returned row-wise.
      Parameters:
      direct - if true, the internal array will be returned if possible
      Returns: