First time here? Check out the FAQ!

Ask Your Question
0

How to filter a single column mat with Gaussian in OpenCV

asked Jan 1 '14

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.

Preview: (hide)

1 answer

Sort by » oldest newest most voted
2

answered Jan 2 '14

You can use this link.

Preview: (hide)

Comments

Thanks for your answer!

GilLevi gravatar imageGilLevi (Jan 3 '14)edit

Question Tools

Stats

Asked: Jan 1 '14

Seen: 280 times

Last updated: Jan 02 '14