OpenCV中Mat与Android中Bitmap简介

        因为在介绍这部分系列的内容时,默认是对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,
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值