public class BufferedImagePlane extends AbstractPlane<BufferedImage,BufferedImagePlane>
Plane implementation using a
BufferedImage for the underlying data representation.Plane,
DataPlane,
BufferedImage| Constructor and Description |
|---|
BufferedImagePlane() |
BufferedImagePlane(ImageMetadata meta,
net.imglib2.Interval bounds) |
| Modifier and Type | Method and Description |
|---|---|
protected BufferedImage |
blankPlane(net.imglib2.Interval bounds) |
byte[] |
getBytes()
Standardizes this plane's
BufferedImage to a byte[]. |
void |
setData(BufferedImage data)
Sets the native pixel data for this plane.
|
getBounds, getColorTable, getData, getImageMetadata, populate, populate, populate, populate, populate, setBounds, setColorTable, setImageMetadataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLengths, getMax, getMinpublic BufferedImagePlane()
public BufferedImagePlane(ImageMetadata meta, net.imglib2.Interval bounds)
public byte[] getBytes()
BufferedImage to a byte[].
NB: If this plane contains multiple channels, the planes for each channel
will be condensed to a single array. The first entry for each channel's
data will have an offset of: channelIndex * planeSize.
protected BufferedImage blankPlane(net.imglib2.Interval bounds)
blankPlane in class AbstractPlane<BufferedImage,BufferedImagePlane>public void setData(BufferedImage data)
DataPlanePlane.getColorTable()
returns null, then this is the pixel data. Otherwise, this data should be
used as an index into the associated ColorTable.setData in interface DataPlane<BufferedImage>setData in class AbstractPlane<BufferedImage,BufferedImagePlane>data - - an object matching the native data type of this plane.Copyright © 2011–2026 SCIFIO. All rights reserved.