OpenCV Q&A Forum - RSS feedhttp://answers.opencv.org/questions/OpenCV answersenCopyright <a href="http://www.opencv.org">OpenCV foundation</a>, 2012-2018.Sat, 14 Jun 2014 07:49:46 -0500Oriented Gaussian Kernelhttp://answers.opencv.org/question/27672/oriented-gaussian-kernel/Hi,
I have three Mat of the same size: one is my image and the other two are the (u,v) components of a vector field. I would like to apply a Gaussian filter along each vector (e.g. If the gradient for a pixel is (1,0) the Gaussian kernel is computed only horizontally). How can I do that?
Can I compute something like:
`p = u*Gx + v*Gy`,
where Gx is the gaussian blur on the x-axis and Gy the gaussian on the y-axis?
The idea is that I have some contours and I want to compute the gaussian blur on the normal of the contour instead of blindly using a circular or elliptical surrounding of pixels for the computation.Tue, 04 Feb 2014 06:08:36 -0600http://answers.opencv.org/question/27672/oriented-gaussian-kernel/Comment by Royi for <p>Hi,
I have three Mat of the same size: one is my image and the other two are the (u,v) components of a vector field. I would like to apply a Gaussian filter along each vector (e.g. If the gradient for a pixel is (1,0) the Gaussian kernel is computed only horizontally). How can I do that? </p>
<p>Can I compute something like:
<code>p = u*Gx + v*Gy</code>,
where Gx is the gaussian blur on the x-axis and Gy the gaussian on the y-axis?</p>
<p>The idea is that I have some contours and I want to compute the gaussian blur on the normal of the contour instead of blindly using a circular or elliptical surrounding of pixels for the computation.</p>
http://answers.opencv.org/question/27672/oriented-gaussian-kernel/?comment=35044#post-id-35044It sounds like Anisotropic Diffusion, have you tried it?Sat, 14 Jun 2014 07:49:46 -0500http://answers.opencv.org/question/27672/oriented-gaussian-kernel/?comment=35044#post-id-35044