Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Best way to reduce running time on warpAffine?

Hi,

Just like using mask when copying image:

image1.copyTo(image2, mask)

I just want to apply warpAffine only on a particular region because I only need a small part of image for example mouth. But existing warpAffine methods do not seem to accept any masks. Therefore I need to find a smart and easy way to do masking warpAffine method in order to reduce running time. Has anyone here thought about it before? Please give me some tips!

Best way to reduce running time of masking on warpAffine?

Hi,

Just like using mask when copying image:

image1.copyTo(image2, mask)

I just want to apply warpAffine only on a particular region because I only need a small part of image for example mouth. But existing warpAffine methods do not seem to accept any masks. Therefore I need to find a smart and easy way to do masking warpAffine method in order to reduce running time. Has anyone here thought about it before? Please give me some tips!