Class VoxelBufferFromMat
Object
VoxelBufferFromMat
Converts a
Mat
to a VoxelBuffer
.- Author:
- Owen Feehan
-
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 aMat
to aVoxelBuffer
.static VoxelBuffer
<UnsignedByteBuffer> unsignedByteFromMat
(org.opencv.core.Mat mat, Extent extent) static VoxelBuffer
<UnsignedShortBuffer> unsignedShortFromMat
(org.opencv.core.Mat mat, Extent extent)
-
Method Details
-
toVoxelBuffer
public static VoxelBuffer<?> toVoxelBuffer(org.opencv.core.Mat mat, Extent extent) throws OperationFailedException Converts aMat
to aVoxelBuffer
.- Parameters:
mat
- theMat
to 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) - Parameters:
mat
- theMat
to 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) - Parameters:
mat
- theMat
to convert.extent
- the size of the image in theMat
.- Returns:
- a newly created
VoxelBuffer
, converted frommat
.
-
floatFromMat
- Parameters:
mat
- theMat
to convert.extent
- the size of the image in theMat
.- Returns:
- a newly created
VoxelBuffer
, converted frommat
.
-