Modifier and Type | Method and Description |
---|---|
static Stack |
toStack(org.opencv.core.Mat mat)
Convert from an OpenCV
Mat to a Stack . |
public static Stack toStack(org.opencv.core.Mat mat) throws OperationFailedException
Mat
to a Stack
.mat
- either of type CvType.CV_8UC3
for an BGR image, or otherwise a
single-channeled image.Stack
, in RGB order (not BGR) or otherwise single-channeled.OperationFailedException
- if the data-type is unsupported, or if Mat
has zero
width or height, which indicates an error.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.