Ask Your Question
0

what are the parameters in canny function in opencv

asked Feb 20 '13

dinesh gravatar image

Capture.JPG can anyone explain me the 80 and 90 in the canny function and also plz explain me the "if" condition

Preview: (hide)

1 answer

Sort by » oldest newest most voted
3

answered Feb 20 '13

All the parameters are explain in the doc here.

The ''if'' presented in the image is only used to create the matrices in OpenCV format. It checks if the matrices exist and if their size is correct before calling the Canny Function.

Just a note to say that you better should used the code insertion instead of an image when you post code on your question, it is easier to read...

Preview: (hide)

Comments

@Mathieu Barnachon: can u explain me what is the mIntermediatemat used everywhere?

dinesh gravatar imagedinesh (Feb 20 '13)edit

I think it's just a temporary matrix used for conversion of image.

Mathieu Barnachon gravatar imageMathieu Barnachon (Feb 20 '13)edit

Question Tools

Stats

Asked: Feb 20 '13

Seen: 491 times

Last updated: Feb 20 '13