Ask Your Question
0

What is MORPH_RECT parameters?

asked 2016-06-10 04:58:18 -0600

alex1306 gravatar image

What does it mean 21 and 10 parameters?

in

cv2.getStructuringElement(cv2.MORPH_RECT, (21, 21), (10, 10))

I can understand from docs.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-06-10 06:47:10 -0600

LBerger gravatar image

As it written in Doc first parameter is size (width and height) and second element is center position relative to shape. If you want something symetric for a size(3,3) center is position (1,1) for size(5,7) center at position (2,3)...

edit flag offensive delete link more

Comments

thanks for help!

alex1306 gravatar imagealex1306 ( 2016-06-10 07:13:43 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-06-10 04:58:18 -0600

Seen: 386 times

Last updated: Jun 10 '16