First time here? Check out the FAQ!

Ask Your Question
1

Filter2D Meaning

asked Oct 29 '14

Deepak Kumar gravatar image

updated Jan 25 '19

hy, can anyone give me the explaination of these 2 lines of code.

c1 = cv2.filter2D(img2, -1, h/n1, borderType=cv2.BORDER_REFLECT) c2 = cv2.filter2D(img, -1, h, borderType=cv2.BORDER_REFLECT)2 / (n*n1)

i am not able to get the meaning of img2 and cv2.filter2D(img, -1, h, borderType=cv2.BORDER_REFLECT)2 / (n*n1).

what it exectly does. i want to write the same thing in java. appreciated if someone can help me out help me !!

Preview: (hide)

1 answer

Sort by » oldest newest most voted
1

answered Oct 29 '14

rwong gravatar image

If you have not studied Convolution before, please go ahead and study it. It is a concept in mathematics and/or signal processing, and is relevant to electrical engineering as well. Ask your mathematics professor or tutor for help if necessary. If you do not understand this concept, there is no way to explain that to you.

Preview: (hide)

Question Tools

Stats

Asked: Oct 29 '14

Seen: 336 times

Last updated: Oct 29 '14