早教吧 育儿知识 作业答案 考试题库 百科 知识分享

opencv中,下面语句是什么意思?Pointcenter(moment.m10/moment.m00,moment.m01/moment.m00);Momentsmoment=moments(skinArea,true);Pointcenter(moment.m10/moment.m00,moment.m01/moment.m00);其中center中的各个参数是什么意思?

题目详情
opencv中,下面语句是什么意思?Point center(moment.m10/moment.m00, moment.m01/moment.m00);
Moments moment = moments(skinArea, true);
Point center(moment.m10/moment.m00, moment.m01/moment.m00);
其中center中的各个参数是什么意思?
▼优质解答
答案和解析
Moments是OpenCV的一个类,可以用来表示图像矩;
mij表示图像的(i+j)阶矩;
这里定义一个实例moment,其中moment.m00是零阶矩,可以用来表示图像的面积,moment.m10、moment.m01为一阶矩;
Xc = m10/m00;Yc = m01/m00用来表示图像的重心.
看了 opencv中,下面语句是什...的网友还看了以下: