Ask Your Question

resize an image fill the rest with color

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

xxmaxx gravatar image


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

how is this possible with version 2.3?


edit retag flag offensive close merge delete



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

Guanta gravatar imageGuanta ( 2014-04-18 18:34:37 -0600 )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 -0600 )edit

1 answer

Sort by » oldest newest most voted

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

Guanta gravatar image

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

edit flag offensive delete link more

Question Tools


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

Seen: 883 times

Last updated: Apr 18 '14