OpenCV: Miscellaneous Image Transformations
docs.opencv.org › 3 › d7For a,b, and c, OpenCV uses the values suggested in the original paper: DIST_L1: a = 1, b = 2; DIST_L2: 3 x 3: a=0.955, b=1.3693; 5 x 5: a=1, b=1.4, c=2.1969; DIST_C: a = 1, b = 1; Typically, for a fast, coarse distance estimation DIST_L2, a \(3\times 3\) mask is used.
OpenCV: Image Segmentation with Distance Transform and ...
docs.opencv.org › tutorial_distance_transformJan 08, 2013 · Use the OpenCV function cv::filter2D in order to perform some laplacian filtering for image sharpening. Use the OpenCV function cv::distanceTransform in order to obtain the derived representation of a binary image, where the value of each pixel is replaced by its distance to the nearest background pixel. Use the OpenCV function cv::watershed in order to isolate objects in the image from the background.
OpenCV: Hough Line Transform
docs.opencv.org › 3 › d3Jan 08, 2013 · for the multi-scale Hough transform, it is a divisor for the distance resolution theta. min_theta: for standard and multi-scale Hough transform, minimum angle to check for lines. Must fall between 0 and max_theta. max_theta: for standard and multi-scale Hough transform, maximum angle to check for lines. Must fall between min_theta and CV_PI.