Class SimpleImages

java.lang.Object
qupath.lib.analysis.images.SimpleImages

public class SimpleImages extends Object
Create SimpleImage instances for basic pixel processing.
Author:
Pete Bankhead
  • Constructor Details

    • SimpleImages

      public SimpleImages()
  • Method Details

    • getPixels

      public static float[] getPixels(SimpleImage image, boolean direct)
      Get the pixel values for the image.
      Parameters:
      image -
      direct - if true, return the direct pixel buffer if possible. The caller should not modify this.
      Returns:
    • createFloatImage

      public static SimpleModifiableImage createFloatImage(float[] data, int width, int height)
      Create a SimpleImage backed by an existing float array of pixels.

      Pixels are stored in row-major order.

      Parameters:
      data -
      width -
      height -
      Returns:
    • createFloatImage

      public static SimpleModifiableImage createFloatImage(int width, int height)
      Create a SimpleImage backed by a float array of pixels.
      Parameters:
      width -
      height -
      Returns: