¡@

Home 

2014/10/15 ¤U¤È 10:05:53

iphone Programming Glossary: cv_8uc1

matchTemplate opencv not working as shown in opencv document

http://stackoverflow.com/questions/12049358/matchtemplate-opencv-not-working-as-shown-in-opencv-document

ipala self UIImageFromIplImage res cv Mat forground3 ipala CVMat cv normalize forground3 forground3 0 1 cv NORM_MINMAX CV_8UC1 cvMinMaxLoc res minval maxval minloc maxloc 0 cvRectangle img cvPoint maxloc.x maxloc.y cvPoint maxloc.x tpl_width maxloc.y.. cvMatFromUIImage image cv Mat grayMat if cvMat.channels 1 grayMat cvMat else grayMat cv Mat cvMat.rows cvMat.cols CV_8UC1 cv cvtColor cvMat grayMat CV_BGR2GRAY return grayMat UIImage scaleAndRotateImageBackCamera UIImage image static int kMaxResolution..

OpenCV install in xcode

http://stackoverflow.com/questions/12214273/opencv-install-in-xcode

cvMatFromUIImage image cv Mat grayMat if cvMat.channels 1 grayMat cvMat else grayMat cv Mat cvMat.rows cvMat.cols CV_8UC1 cv cvtColor cvMat grayMat CV_BGR2GRAY return grayMat UIImage scaleAndRotateImageBackCamera UIImage image static int kMaxResolution..

adjust corners and crop the image openCV

http://stackoverflow.com/questions/13098073/adjust-corners-and-crop-the-image-opencv

contours CV_RETR_EXTERNAL CV_CHAIN_APPROX_NONE you could also reuse img1 here Mat mask Mat zeros img1.rows img1.cols CV_8UC1 CV_FILLED fills the connected components found drawContours mask contours 1 Scalar 255 CV_FILLED let's create a new image.. crop mask normalize so imwrite ... imshow ... shows the mask correctly normalize mask.clone mask 0.0 255.0 CV_MINMAX CV_8UC1 std vector cv Point biggestContour contours contours.size 1 NSLog @ d biggestContour 0 .x NSLog @ d biggestContour 0 .y..

Newbie having issues with uploading a file using ASIHTTPRequest

http://stackoverflow.com/questions/5319823/newbie-having-issues-with-uploading-a-file-using-asihttprequest