Ask Your Question
0

How to filter a single column mat with Gaussian in OpenCV

asked 2014-01-01 16:54:10 -0500

I have mat with only one column and 1600 rows. I want to filter it using a Gaussian.

I tried the following:

Mat AFilt=Mat(palm_contour.size(),1,CV_32F);
GaussianBlur(A,AFilt,cv::Size(20,1),3);

But I get the exact same values in AFilt (the filtered mat) and A. It looks like GaussianBlur has done nothing.

What's the problem here? How can I smooth a single-column mat with a Gaussian kernel?

I read about BaseColumnFilt, but haven't seen any usage examples so I'm not sure how to use them.

Any help given will be greatly appreciated as I don't have a clue.

I'm working with OpenCV 2.4.5 on windows 8 using Visual Studio 2012.

Thanks

Gil.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2014-01-02 00:30:51 -0500

You can use this link.

edit flag offensive delete link more

Comments

Thanks for your answer!

GilLevi gravatar imageGilLevi ( 2014-01-03 08:59:18 -0500 )edit
Login/Signup to Answer

Question Tools

Stats

Asked: 2014-01-01 16:54:10 -0500

Seen: 131 times

Last updated: Jan 02 '14