8 if (img.channels() != 1) cvtColor(img, I, cv::ColorConversionCodes::COLOR_RGB2GRAY);
11 threshold(I, I, thres, 255, THRESH_BINARY_INV);
12 distanceTransform(I, I, cv::DistanceTypes::DIST_L2, cv::DistanceTransformMasks::DIST_MASK_PRECISE);
13 I.convertTo(res, CV_8UC1, multiplier);
virtual Mat get(void) const
Extracts and returns the required feature.