Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How do I resize and smooth images in opencv 2.4.2

Good evening,

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; mat.resize(s); // 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

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?

Thank you

-Dmitry

How do I resize and smooth images in opencv 2.4.2

Good evening,

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; mat.resize(s); // but 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 heightheight. 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?

Thank you

-Dmitry

How do I resize and smooth images in opencv 2.4.2

Good evening,

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), 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?

Thank you

-Dmitry

click to hide/show revision 4
No.4 Revision

How do I resize and smooth images in opencv 2.4.2

Good evening,

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?

Thank you

-Dmitry

click to hide/show revision 5
No.5 Revision

How do I resize and smooth images in opencv 2.4.2

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

760);

Sound_mat.resize(s,s2);

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?