You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This program implements edge detection using the sobel operator
If your image has 3 channels(r,b,g), the program will convert it to grayscale first. It will also give a grayscale.jpg file.
If you would like to visualize different parts of this algorithm, then you can use sobelEdgeDetectionExtra.cpp, which will create ver.jpg and hor.jpg which show the vertical and horizontal changes respectively. A sobel-orientation.jpg is also made which shows the orientations of the edges.
You might want to increase the memory a program can use using your bash since the programs are not too memory efficient, therefore high res images might not work. The extra program is even more so.. To increase stack size to 32MB (which is 8MB by default):