| | |
| | | cv::Mat yMat(cv::Size(w, h), CV_8UC1, block.croppedData);
|
| | | cv::Mat edges;
|
| | | cv::GaussianBlur(yMat, edges, cv::Size(5, 5), 1.5, 1.5);
|
| | | //cv::Canny(edges, edges, 50, 100, 3);
|
| | | cv::Sobel(yMat, edges, CV_8UC1, 1, 0, 3);
|
| | | cv::Canny(edges, edges, 50, 100, 3);
|
| | | //cv::Sobel(yMat, edges, CV_8UC1, 1, 0, 3);
|
| | |
|
| | | //memcpy(block.croppedData, edges.data, w * h);
|
| | |
|
| | |
| | |
|
| | | if (calc_canny)
|
| | | {
|
| | | //float cannyScore = scoring_canny_focus(*iterBlk) * 10.0f;
|
| | | //totalScore += in->config.canny_focus * cannyScore;
|
| | | float cannyScore = scoring_canny_focus(*iterBlk) * 10.0f;
|
| | | totalScore += in->config.canny_focus * cannyScore;
|
| | | }
|
| | | if (calc_histogram)
|
| | | {
|