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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleModifiableImagecreateFloatImage(float[] data, int width, int height) Create aSimpleImagebacked by an existing float array of pixels.static SimpleModifiableImagecreateFloatImage(int width, int height) Create aSimpleImagebacked 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 aSimpleImagebacked by an existing float array of pixels.Pixels are stored in row-major order.
- Parameters:
data-width-height-- Returns:
-
createFloatImage
Create aSimpleImagebacked by a float array of pixels.- Parameters:
width-height-- Returns:
-