5.opencv学习笔记
durpur
这个作者很懒,什么都没留下…
展开
-
opencv:轮廓属性
1. Aspect Ratio宽与高之比 cv2.boundingRect(cnt)2. Extent 目标面积 占 边界矩形框 的比例area = cv2.contourArea(cnt)x,y,w,h = cv2.boundingRect(cnt)rect_area = w*hextent = float(area)/rect_area3. Solidity 目标面积原创 2015-11-22 09:42:09 · 1539 阅读 · 0 评论 -
opencv:边缘特征
越来越发现,英文技术资料的质量逼中文的好太多了。以后尽量不看中文的本文是这一帖子的笔记:http://opencv-python-tutroals.readthedocs.org/en/latest/py_tutorials/py_imgproc/py_contours/py_contour_features/py_contour_features.html内容提要:一.ope原创 2015-11-20 10:54:36 · 1533 阅读 · 0 评论 -
opencv:检测边缘
转载自 http://bubuko.com/infodetail-484534.htmlvoid findContours(InputOutputArray image, OutputArrayOfArrays contours, OutputArray hierarchy, int mode, intmethod, Point offset=Point())其实没有细看,只是做个原创 2015-11-20 10:50:21 · 518 阅读 · 0 评论 -
opencv:把三通道图转换成灰度图、二值图
#include #include #includeusing namespace cv;int main(){//mainMat image_f= imread("ff16.bmp");cvtColor(image_f,image_f,CV_BGR2GRAY);//三通道的图转化为1通道的灰度图threshold(image_f,image_f,145,255,THRES原创 2015-11-27 10:11:43 · 17042 阅读 · 0 评论 -
opencv:找到opencv官方的使用说明
终于找到 opencv的使用说明文档的位置了,之前需要却没搜到,是我太笨吗 囧http://docs.opencv.org/2.4/modules/imgproc/doc/miscellaneous_transformations.html?highlight=threshold#threshold原创 2015-11-27 09:51:02 · 815 阅读 · 0 评论 -
C++:使用vector的元素
摘自http://www.cnblogs.com/wang7/archive/2012/04/27/2474138.html原创 2015-11-27 14:46:25 · 706 阅读 · 0 评论