Error resizing an image

asked 2016-03-25 05:36:40 -0500

Gale gravatar image

I have a problem we I resize an image. I have a scource IplImage and I use the following code to resize that image:

  m_pResizedImage = cvCreateImage(cvSize(m_ulResizedFrameWidth, m_ulResizedFrameHeight), IPL_DEPTH_8U, 3);

  cvResize(m_pFullSizeImage, m_pResizedImage);

As result a obtain a wong image. Attached you can see the fullsize image and the resize result. What's wrong ?

Thanks a lot

C:\fakepath\FullSizeCameraImage.jpg

C:\fakepath\ResizedCameraImage.jpg

edit retag flag offensive close merge delete

Comments

please do not try to use opencv's legacy c-api. they moved away from that 6 years ago, and you must use c++ now (cv::Mat)

berak gravatar imageberak ( 2016-03-25 05:47:28 -0500 )edit