java.lang.Object
uk.ac.manchester.tornado.api.types.images.ImageByte4
- All Implemented Interfaces:
Serializable,PrimitiveStorage<ByteBuffer>,TornadoImagesInterface<ByteBuffer>
ImageByte4 relies on preview features of the Java platform:
ImageByte4refers to one or more preview APIs:MemorySegment.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionImageByte4(byte[][] matrix) ImageByte4(int width, int height) Storage format for matrix.ImageByte4(int width, int height, ByteArray array) Storage format for matrix. -
Method Summary
-
Field Details
-
TYPE
-
-
Constructor Details
-
ImageByte4
Storage format for matrix.- Parameters:
width- number of rowsheight- number of columnsarray- array reference which contains data
-
ImageByte4
public ImageByte4(int width, int height) Storage format for matrix.- Parameters:
width- number of rowsheight- number of columns
-
ImageByte4
public ImageByte4(byte[][] matrix)
-
-
Method Details
-
getArray
-
get
-
set
-
get
-
set
-
X
public int X() -
Y
public int Y() -
fill
public void fill(byte value) -
duplicate
-
set
-
mean
-
min
-
max
-
stdDev
-
summarise
-
toString
-
toString
-
toString
-
loadFromBuffer
- Specified by:
loadFromBufferin interfacePrimitiveStorage<ByteBuffer>
-
asBuffer
- Specified by:
asBufferin interfacePrimitiveStorage<ByteBuffer>
-
size
public int size()- Specified by:
sizein interfacePrimitiveStorage<ByteBuffer>
-
clear
public void clear() -
getNumBytes
public long getNumBytes()- Specified by:
getNumBytesin interfaceTornadoImagesInterface<ByteBuffer>
-
getNumBytesWithHeader
public long getNumBytesWithHeader()- Specified by:
getNumBytesWithHeaderin interfaceTornadoImagesInterface<ByteBuffer>
-
getSegment
- Specified by:
getSegmentin interfaceTornadoImagesInterface<ByteBuffer>
-
getSegmentWithHeader
- Specified by:
getSegmentWithHeaderin interfaceTornadoImagesInterface<ByteBuffer>
-
ImageByte4when preview features are enabled.