美文网首页IOS O...
IOS OpenCV Mat 像素运算

IOS OpenCV Mat 像素运算

作者: T踏风而行T | 来源:发表于2017-08-10 14:35 被阅读0次

#pragma mark - - 检测矩阵运算

cv::Mat eyeMat =cv::Mat::eye(4,4,CV_8UC1);

for(inti =0; i < eyeMat.rows; i++) {

for(intj=0; j< eyeMat.cols; j++) {

//XPFLog(@"%d ", eyeMat.at(i,j)[0]);

NSLog(@"%d ", eyeMat.at(i,j));

}

NSLog(@" == ");

}

NSLog(@" ============= ");

eyeMat.at(2,3) =3;

for(inti =0; i < eyeMat.rows; i++) {

for(intj=0; j< eyeMat.cols; j++) {

//NSLog(@"%d", eyeMat.at(i,j)[0]);

NSLog(@"%d ", eyeMat.at(i,j));

}

XPFLog(@" =***= ");

}

相关文章

网友评论

    本文标题:IOS OpenCV Mat 像素运算

    本文链接:https://www.haomeiwen.com/subject/ntehrxtx.html