Home
last modified time | relevance | path

Searched refs:raw_dist (Results 1 – 1 of 1) sorted by relevance

/external/opencv3/samples/cpp/tutorial_code/ShapeDescriptors/
DpointPolygonTest_demo.cpp46 Mat raw_dist( src.size(), CV_32FC1 ); in main() local
50 …{ raw_dist.at<float>(j,i) = (float)pointPolygonTest( contours[0], Point2f((float)i,(float)j), true… in main()
54 minMaxLoc( raw_dist, &minVal, &maxVal, 0, 0, Mat() ); in main()
63 if( raw_dist.at<float>(j,i) < 0 ) in main()
64 … { drawing.at<Vec3b>(j,i)[0] = (uchar)(255 - abs(raw_dist.at<float>(j,i))*255/minVal); } in main()
65 else if( raw_dist.at<float>(j,i) > 0 ) in main()
66 { drawing.at<Vec3b>(j,i)[2] = (uchar)(255 - raw_dist.at<float>(j,i)*255/maxVal); } in main()