java.lang.Object
uk.ac.manchester.tornado.api.types.images.ImageFloat3
- All Implemented Interfaces:
Serializable,PrimitiveStorage<FloatBuffer>,TornadoImagesInterface<FloatBuffer>
ImageFloat3 relies on preview features of the Java platform:
ImageFloat3refers 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
ConstructorsConstructorDescriptionImageFloat3(float[][] matrix) ImageFloat3(int width, int height) Storage format for matrix.ImageFloat3(int width, int height, FloatArray array) Storage format for matrix. -
Method Summary
Modifier and TypeMethodDescriptionasBuffer()calculateULP(ImageFloat3 ref) voidclear()voidfill(float value) get(int x) get(int x, int y) getArray()longlongvoidloadFromBuffer(FloatBuffer buffer) max()mean()min()voidvoidvoidset(ImageFloat3 m) intsize()stdDev()toString()intX()intY()
-
Field Details
-
TYPE
-
-
Constructor Details
-
ImageFloat3
Storage format for matrix.- Parameters:
width- number of rowsheight- number of columnsarray- array reference which contains data
-
ImageFloat3
public ImageFloat3(int width, int height) Storage format for matrix.- Parameters:
width- number of rowsheight- number of columns
-
ImageFloat3
public ImageFloat3(float[][] matrix)
-
-
Method Details
-
getArray
-
get
-
set
-
get
-
set
-
X
public int X() -
Y
public int Y() -
fill
public void fill(float value) -
duplicate
-
set
-
toString
-
toString
-
mean
-
min
-
max
-
stdDev
-
summarise
-
loadFromBuffer
- Specified by:
loadFromBufferin interfacePrimitiveStorage<FloatBuffer>
-
asBuffer
- Specified by:
asBufferin interfacePrimitiveStorage<FloatBuffer>
-
size
public int size()- Specified by:
sizein interfacePrimitiveStorage<FloatBuffer>
-
calculateULP
-
clear
public void clear() -
getNumBytes
public long getNumBytes()- Specified by:
getNumBytesin interfaceTornadoImagesInterface<FloatBuffer>
-
getNumBytesWithHeader
public long getNumBytesWithHeader()- Specified by:
getNumBytesWithHeaderin interfaceTornadoImagesInterface<FloatBuffer>
-
getSegment
- Specified by:
getSegmentin interfaceTornadoImagesInterface<FloatBuffer>
-
getSegmentWithHeader
- Specified by:
getSegmentWithHeaderin interfaceTornadoImagesInterface<FloatBuffer>
-
ImageFloat3when preview features are enabled.