Class ConvertFromMat
Object
ConvertFromMat
Convert from the OpenCV
Mat to a Stack.- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionstatic StacktoStack(org.opencv.core.Mat mat) Convert from an OpenCVMatto aStack.
-
Method Details
-
toStack
public static Stack toStack(org.opencv.core.Mat mat) throws OperationFailedException Convert from an OpenCVMatto aStack.- Parameters:
mat- either of typeCvType.CV_8UC3for an BGR image, or otherwise a single-channeled image.- Returns:
- a newly created
Stack, in RGB order (not BGR) or otherwise single-channeled. - Throws:
OperationFailedException- if the data-type is unsupported, or ifMathas zero width or height, which indicates an error.
-