public abstract class OpenCVFrameConverter<F> extends FrameConverter<F>
Frame and IplImage or Mat.
Since this is an abstract class, one must choose between two concrete classes:
OpenCVFrameConverter.ToIplImage or OpenCVFrameConverter.ToMat. OpenCVFrameConverter.ToOrgOpenCvCoreMat is also available to
do the same with Mat from the official Java API of OpenCV.| Modifier and Type | Class and Description |
|---|---|
static class |
OpenCVFrameConverter.ToIplImage |
static class |
OpenCVFrameConverter.ToMat |
static class |
OpenCVFrameConverter.ToOrgOpenCvCoreMat |
frame| Constructor and Description |
|---|
OpenCVFrameConverter() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Frame |
convert(IplImage img) |
Frame |
convert(Mat mat) |
Frame |
convert(Mat mat) |
IplImage |
convertToIplImage(Frame frame) |
Mat |
convertToMat(Frame frame) |
Mat |
convertToOrgOpenCvCoreMat(Frame frame) |
static int |
getFrameDepth(int depth) |
static int |
getIplImageDepth(int depth) |
static int |
getMatDepth(int depth) |
convert, convertpublic static int getFrameDepth(int depth)
public static int getIplImageDepth(int depth)
public static int getMatDepth(int depth)
public void close()
close in interface AutoCloseableclose in class FrameConverter<F>Copyright © 2024. All rights reserved.