Class VoxelBufferFromMat
Object
VoxelBufferFromMat
-
Method Summary
Modifier and TypeMethodDescriptionstatic VoxelBuffer<FloatBuffer> floatFromMat(org.opencv.core.Mat mat, Extent extent) static VoxelBuffer<?> toVoxelBuffer(org.opencv.core.Mat mat, Extent extent) Converts aMatto aVoxelBuffer.static VoxelBuffer<UnsignedByteBuffer> unsignedByteFromMat(org.opencv.core.Mat mat, Extent extent) Converts aMatto aVoxelBufferwith voxel data-typeUnsignedByteBuffer.static VoxelBuffer<UnsignedShortBuffer> unsignedShortFromMat(org.opencv.core.Mat mat, Extent extent) Converts aMatto aVoxelBufferwith voxel data-typeUnsignedShortBuffer.
-
Method Details
-
toVoxelBuffer
public static VoxelBuffer<?> toVoxelBuffer(org.opencv.core.Mat mat, Extent extent) throws OperationFailedException Converts aMatto aVoxelBuffer.- Parameters:
mat- theMatto convert.extent- the size of the image in theMat.- Returns:
- a newly created
VoxelBuffer, converted frommat. - Throws:
OperationFailedException- if it has an supported voxel data-type.
-
unsignedByteFromMat
public static VoxelBuffer<UnsignedByteBuffer> unsignedByteFromMat(org.opencv.core.Mat mat, Extent extent) Converts aMatto aVoxelBufferwith voxel data-typeUnsignedByteBuffer.- Parameters:
mat- theMatto convert.extent- the size of the image in theMat.- Returns:
- a newly created
VoxelBuffer, converted frommat.
-
unsignedShortFromMat
public static VoxelBuffer<UnsignedShortBuffer> unsignedShortFromMat(org.opencv.core.Mat mat, Extent extent) Converts aMatto aVoxelBufferwith voxel data-typeUnsignedShortBuffer.- Parameters:
mat- theMatto convert.extent- the size of the image in theMat.- Returns:
- a newly created
VoxelBuffer, converted frommat.
-
floatFromMat
- Parameters:
mat- theMatto convert.extent- the size of the image in theMat.- Returns:
- a newly created
VoxelBuffer, converted frommat.
-