Ask Your Question
1

resize an image fill the rest with color

asked 2014-04-18 14:08:37 -0500

xxmaxx gravatar image

hi,

i have an image and would like enlarge the dimension to. i found this solution but its not working for me. I'm on Version 2.3

http://answers.opencv.org/question/14052/resize-an-image-but-fill-the-space-with-black/

how is this possible with version 2.3?

thx

edit retag flag offensive close merge delete

Comments

1

There are two solutions in this post and none of them works?!

Guanta gravatar imageGuanta ( 2014-04-18 18:34:37 -0500 )edit

the fist one gives me an "no matching function for call to ‘cv::Mat::copyTo(cv::Mat) const" and the second one i can not use because i have to solve this with Rect and copyTo

xxmaxx gravatar imagexxmaxx ( 2014-04-19 03:48:14 -0500 )edit

1 answer

Sort by » oldest newest most voted
1

answered 2014-04-19 05:19:57 -0500

Guanta gravatar image

Then you have a problem with 'const'-nes, try it with non-'const' mats.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

Asked: 2014-04-18 14:08:37 -0500

Seen: 503 times

Last updated: Apr 18 '14