Package qupath.lib.analysis.images
Class SimpleImages
java.lang.Object
qupath.lib.analysis.images.SimpleImages
Create
SimpleImage
instances for basic pixel processing.- Author:
- Pete Bankhead
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleModifiableImage
createFloatImage
(float[] data, int width, int height) Create aSimpleImage
backed by an existing float array of pixels.static SimpleModifiableImage
createFloatImage
(int width, int height) Create aSimpleImage
backed by a float array of pixels.static float[]
getPixels
(SimpleImage image, boolean direct) Get the pixel values for the image.
-
Constructor Details
-
SimpleImages
public SimpleImages()
-
-
Method Details
-
getPixels
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
Create aSimpleImage
backed by an existing float array of pixels.Pixels are stored in row-major order.
- Parameters:
data
-width
-height
-- Returns:
-
createFloatImage
Create aSimpleImage
backed by a float array of pixels.- Parameters:
width
-height
-- Returns:
-