regarding computation of threshold values in cvCanny()

View: New views
1 Messages — Rating Filter:   Alert me  

regarding computation of threshold values in cvCanny()

by abhijitpoojary :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Respected Sir,
       I have a query related to the canny edge detection function cvCanny() in OpenCV. Given the input image(1st argument) for cvCanny() function, if I wish to calculate the best upper/lower threshold(any of the 3rd or 4th argument, for the other threshold can be calculated using high:low threshold ratio, as said by J.Canny) for that particular supplied input image, how can I do so ? Example, in MATLAB, if we do not specify the upper & lower threshold values, MATLAB automatically calculates the near perfect values for the particular input image, on which canny edge detection is to be performed(and the threshold values are different for different input images). How could we implement the same for cvCanny() function ?
Also, Is there any function/technique in OpenCV which can accomplish this ?  
                            Please do reply me,

           Waiting for your reply,

Regards,
Abhijit.