因为在介绍这部分系列的内容时,默认是对Android开发有一点基础的,所以这样的话,Bitmap可能就相对很熟悉了,相较陌生的是Mat,那我们就首先来看看Mat是什么。
1,Mat
1.1 Mat基本介绍
Mat是OpenCV中用于存储图像信息的类,它在OpenCV中作为一个很重要的信息载体,下面看一下文档中的介绍的关于其方法的部分:
构造方法:
Mat() |
Mat(int rows, int cols, int type) |
Mat(int rows, int cols, int type, java.nio.ByteBuffer data) |
Mat(int rows, int cols, int type, Scalar s) |
Mat(long addr) |
Mat(Mat m, Range rowRange) |
Mat(Mat m, Range rowRange, Range colRange) |
Mat(Mat m, Rect roi) |
Mat(Size size, int type) |
Mat(Size size, int type, Scalar s) |
成员方法:
Mat |
adjustROI(int dtop, int dbottom, int dleft, int dright) |
void |
assignTo(Mat m) |
void |
assignTo(Mat m, int type) |
int |
channels() |
int |
checkVector(int elemChannels) |
int |
checkVector(int elemChannels, int depth) |
int |
checkVector(int elemChannels, int depth, boolean requireContinuous) |
Mat |
clone() |
Mat |
col(int x) |
Mat |
colRange(int startcol, int endcol) |
Mat |
colRange(Range r) |
int |
cols() |
void |
convertTo(Mat m, int rtype) |
void |
convertTo(Mat m, int rtype, double alpha) |
void |
convertTo(Mat m, int rtype, double alpha, double beta) |
void |
copyTo(Mat m) |
void |
copyTo(Mat m, |