Ask Your Question
0

c++ equivalent of cvScale function

asked 2015-06-18 08:48:59 -0500

valentine gravatar image

Hi all,

what is the c++ equivalent of function cvScale (a macro of cvConvertScale) function in c of opencv. converting some opencv c codes to c++.

Thanks in advance.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
2

answered 2015-06-19 05:51:11 -0500

Karthikeyan gravatar image

updated 2015-06-22 00:44:25 -0500

The cvScale function (http://docs.opencv.org/modules/core/d...) performs

dst(I) = Scale*Src(I) + Shift,

For which the c++ equivalent is convertTo. Take a look at the document here. (http://docs.opencv.org/modules/core/d...)

edit flag offensive delete link more
0

answered 2015-06-18 09:32:05 -0500

That is quite simple, take a look here !

You can look it up in the docs however ;)

edit flag offensive delete link more

Comments

Are you saying ConvertMaps is the equivalent function?

valentine gravatar imagevalentine ( 2015-06-18 10:00:19 -0500 )edit

ConvertTo is what you needed!! Take a look at the document here. (http://docs.opencv.org/modules/core/d...)

Karthikeyan gravatar imageKarthikeyan ( 2015-06-19 02:10:27 -0500 )edit

It is not convertTo, but the simple resize function that you need ;)

StevenPuttemans gravatar imageStevenPuttemans ( 2015-06-19 02:51:16 -0500 )edit

You are correct, my mistake, I misread the explanation of CvScale...

StevenPuttemans gravatar imageStevenPuttemans ( 2015-06-19 06:57:06 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2015-06-18 08:48:59 -0500

Seen: 1,510 times

Last updated: Jun 22 '15