Ask Your Question

Revision history [back]

The parameter of aperture is used for the Sobel derivatives which allow values 1, 3, 5, and 7. The function itself calculates rather quickly, but with values > 3 it produces hundreds of edges. I used it with other functions so the whole program worked over 20 minutes. Sobel returns a value for the first derivative of the smoothed input image so using values greater than 3 doesn't have much sense.


All in all, the opportunity for fine-tuning is to change 2 thresholds. Using this, it is possible to reveal the lost edges and to hide the undesired efficiently.