c++ Programming Glossary: gray0
OpenCV C++/Obj-C: Advanced square detection http://stackoverflow.com/questions/10533233/opencv-c-obj-c-advanced-square-detection detection Mat blurred image medianBlur image blurred 9 Mat gray0 blurred.size CV_8U gray vector vector Point contours find squares.. image for int c 0 c 3 c int ch c 0 mixChannels blurred 1 gray0 1 ch 1 try several threshold levels const int threshold_level.. to catch squares with gradient shading if l 0 Canny gray0 gray 10 20 3 Dilate helps to remove potential holes between..
Square detection doesn't find squares http://stackoverflow.com/questions/7731742/square-detection-doesnt-find-squares vector vector Point squares squares.clear Mat pyr timg gray0 image.size CV_8U gray karlphillip dilate the image so this technique.. the image for int c 0 c 3 c int ch c 0 mixChannels timg 1 gray0 1 ch 1 try several threshold levels for int l 0 l N l hack.. and set the lower to 0 which forces edges merging Canny gray0 gray 0 thresh 5 dilate canny output to remove potential holes..
OpenCV C++/Obj-C: Detecting a sheet of paper / Square Detection http://stackoverflow.com/questions/8667818/opencv-c-obj-c-detecting-a-sheet-of-paper-square-detection std vector std vector cv Point squares cv Mat pyr timg gray0 _image.size CV_8U gray int thresh 50 N 11 cv pyrDown _image.. contours for int c 0 c 3 c int ch c 0 mixChannels timg 1 gray0 1 ch 1 for int l 0 l N l if l 0 cv Canny gray0 gray 0 thresh.. timg 1 gray0 1 ch 1 for int l 0 l N l if l 0 cv Canny gray0 gray 0 thresh 5 cv dilate gray gray cv Mat cv Point 1 1 else..
Which kind of pointer do I use when? http://stackoverflow.com/questions/8706192/which-kind-of-pointer-do-i-use-when
|