How do I resize and smooth images in opencv 2.4.2 [closed]
I've been searching everywhere for the function to resize an image of type Mat in opencv. I found many solutions, none of which seem to work.
For example, I tried using
size_t s = 2;
cv::Scalar s2 = cv::Scalar(double 1024, double 760);
Sound_mat.resize(s,s2);
But this gives me an image 2 pixels tall and there are no overloaded methods for resize that take 2 arguments such an width and height. What is size_t, or sv::scalar?
Additionally, I could not find any functions to smooth an image, can someone explain how to smooth (gaussian) the images in the most efficient way with the newest release of opencv?
This questions should easily be answered by looking at the OpenCV docs and examples. I think it would be nice for you to first start looking for the answers for yourself - it will help you understand OpenCV. If you do not show enough effort, you may be considered one of these guys http://mattgemmell.com/2008/12/08/what-have-you-tried/
Also, following a tutorial from here will give you a quick insight into OpenCV. http://docs.opencv.org/trunk/doc/tutorials/tutorials.html
Tutorials are especially created to help newcomers get a grab on image processing, because manually answering all the newcomer's questions in forums like this is impossible.