Lines Matching refs:image
3 // each image
33 // returns sequence of squares detected on the image.
35 static void findSquares( const UMat& image, vector<vector<Point> >& squares )
38 UMat pyr, timg, gray0(image.size(), CV_8U), gray;
40 // down-scale and upscale the image to filter out the noise
41 pyrDown(image, pyr, Size(image.cols/2, image.rows/2));
42 pyrUp(pyr, timg, image.size());
45 // find squares in every color plane of the image
115 // the function draws all the squares in the image
118 Mat image = _image.getMat(ACCESS_WRITE);
123 polylines(image, &p, &n, 1, true, Scalar(0,255,0), 3, LINE_AA);
128 // draw both pure-C++ and ocl square results onto a single image
129 static UMat drawSquaresBoth( const UMat& image,
132 UMat imgToShow(Size(image.cols, image.rows), image.type());
133 image.copyTo(imgToShow);
144 "{ i input | ../data/pic1.png | specify input image }"
171 UMat image;
172 imread(inputName, 1).copyTo(image);
173 if( image.empty() )
184 findSquares(image, squares);
189 findSquares(image, squares);
199 UMat result = drawSquaresBoth(image, squares);