Ask Your Question
0

How warpAffine works?

asked 2018-03-28 23:38:08 -0500

Nasun gravatar image

updated 2020-06-15 09:10:42 -0500

HYPEREGO gravatar image

when i use

warpAffine(InputArray src, OutputArray dst, InputArray M, Size dsize);

imshow("dst",dst);

there is visible area and invisible area in OutputArray dst according to Size dsize.

Then I think, if dsize is small, only small area in src need to be warped and this will be more efficient.

warpAffine work like this way?

In other words,

cropping area and warping or warping whole image (src) and cropping ROI?

(sorry for my poor english.)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2018-03-29 04:33:32 -0500

rwong gravatar image

Yes. The amount of work performed by warpAffine is proportional to the destination matrix size (specified by dsize). It is not proportional to the source matrix size.

edit flag offensive delete link more

Comments

thanks for your help! there is no need to waste my time for testing with this issue. lol

Nasun gravatar imageNasun ( 2018-03-30 03:27:53 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2018-03-28 23:38:08 -0500

Seen: 306 times

Last updated: Jun 15