opencv 之二值化图片

opencv 之二值化图片 #include “cv.h”‘ #include “cxcore.h” #include “highgui.h” #include using namespace std; /* way 1 int main () { IplImage* img = cvLoadImage(“asdf.jpg”,-1); IplImage* biimg = cvCreateImage(cvGetSize(img),img->depth,img->nChannels); CvScalar s; int sum=0; for (int i=0;iheight;i++) {

Read more

opencv之边缘检测

opencv之边缘检测 // 边缘检测-canddy.cpp : 定义控制台应用程序的入口点。 //   #include “stdafx.h”     /************************************************** * C++ Canny:Canny边缘检测 **************************************************/   /**************************************************************

Read more