How do I resize and smooth images in opencv 2.4.2 [closed]

asked 2012-10-01 22:32:21 -0600

DmitryPonv gravatar image

updated 2012-10-02 00:48:33 -0600

sammy gravatar image

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);


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?

edit retag flag offensive reopen merge delete

Closed for the following reason too localized by sammy
close date 2012-10-02 00:52:25.892231


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

Also, following a tutorial from here will give you a quick insight into OpenCV.

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.

sammy gravatar imagesammy ( 2012-10-02 00:45:35 -0600 )edit