Package qupath.lib.analysis.images
Interface SimpleModifiableImage
- All Superinterfaces:
SimpleImage
- All Known Implementing Classes:
PixelImageIJ
A minimal interface to define a means to provide access to pixel values from a 2D, 1-channel image.
- Author:
- Pete Bankhead
-
Method Summary
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 sety
- y-coordinate of the pixel to setval
- 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:
-