Package qupath.lib.analysis.images
Class SimpleImages
java.lang.Object
qupath.lib.analysis.images.SimpleImages
Create 
SimpleImage instances for basic pixel processing.- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
SimpleImagespublic SimpleImages()
 
- 
- 
Method Details- 
getPixelsGet 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:
 
- 
createFloatImageCreate aSimpleImagebacked by an existing float array of pixels.Pixels are stored in row-major order. - Parameters:
- data-
- width-
- height-
- Returns:
 
- 
createFloatImageCreate aSimpleImagebacked by a float array of pixels.- Parameters:
- width-
- height-
- Returns:
 
 
-