Forums - Affine trasformation

2 posts / 0 new
Last post
Affine trasformation
yash.trivedi0
Join Date: 16 Jul 18
Posts: 2
Posted: Sun, 2020-09-06 23:15

Hi 

Can anyboady give example for fcvTransformAffine8x8u8 and fcvWarpPerspectiveu8 fcvTransformAffineClippedu8_v3 or fcvTransformAffineu8_v2?

What format source image is exptected ? any test application form where i get to know how to incorporate this fastcv api's would be a grate help.

  • Up0
  • Down0
ss.pandiri
Join Date: 29 May 18
Posts: 58
Posted: Tue, 2021-01-19 09:20
Hi,
 
AffineTransform is used to rotate, translate and scale images/geometric objects.
 
I think, you can use fcvTransformAffineu8_v2 for rotation and scaling of grayscale 8-bit images.
 
Specify the coordinates (centre) of the patch within the image that needs to be transformed, patch width and height through 'position' 
 
Specify the affine tranform for rotation/scalling through 'affine'.
 
The result will be returned in 'patch'
 
For RGB images use : fcv3ChannelTransformAffineClippedBCu8
 
This functionality is similar to what openCV provides. Please see this related information:
 
 
thanks
  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.