Quantum Physics Gasiorowicz: (Image Edges Threshold1 Threshold2 Aperturesize L2Gradient
Quantum Physics Gasiorowicz: (Image Edges Threshold1 Threshold2 Aperturesize L2Gradient
1. Filter out any noise. The Gaussian filter is used for this
purpose.
2. Find the intensity gradient of the image.
3. Non-maximum suppression is applied. This removes pixels
that are not considered to be part of an edge. Hence,only thin
lines (candidate edges) will remain.
4. Hysteresis: The final step. Canny does use two thresholds
(upper and lower):
(a) If a pixel gradient is higher than the upper threshold, the pixel is
accepted as an edge
(b) If a pixel gradient value is below the lower threshold, then it is
rejected.
(c) If the pixel gradient is between the two thresholds, then it will be
accepted only if it is connected to a pixel that is above the upper
threshold.
1.
#define _GLIBCXX_USE_CXX11_ABI 0
2.
#include <iostream>
3.
#include <opencv2/core/core.hpp>
4.
#include <opencv2/imgproc/imgproc.hpp>
5.
#include <opencv2/highgui/highgui.hpp>
6.
7.
8.
9.
int edgeThresh = 1;
img.copyTo(dst, edgeout);