Ask Your Question
0

How to apply zoom in and zoom out in the image with OpenCV

asked 2017-03-10 15:47:28 -0600

diegomoreira gravatar image

I need apply the zoom in and zoom out in the imagem of the my form with OpenCV. But, my great problem is that I don't know whats the function I use in the Visual Studio C++. In the examples of the internet the zoom in and zoom out are applied with Visual C# or Visual Basic.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-03-10 16:15:28 -0600

LBerger gravatar image

updated 2017-03-10 16:17:27 -0600

You can use resize function

Doc :

If you want to decimate the image by factor of 2 in each direction, you can call the function this way: // specify fx and fy and let the function compute the destination image size.

resize(src, dst, Size(), 0.5, 0.5, interpolation);
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-03-10 15:47:28 -0600

Seen: 28,656 times

Last updated: Mar 10 '17