Opencv C - Cartesian to Polar image transformation
10,595
nowadays, there is cv::warpPolar and if you can't achieve what you want (because for example your input image is only part of a disk, you might be interessed in cv::remap (the former uses the later internally). In the later case, you have to build the mapping table yourself with some math.
Related videos on Youtube
Author by
Luis Carlos
Updated on June 04, 2022Comments
-
Luis Carlos almost 2 years
Hi i want to transform a image like this (right to left image ):
I have searching about functions like cvCartToPolar but i dont know how to use it..
Can someone help me? :)
-
Michele mpp Marostica over 10 yearsThat function isn't what you need see the documentation: docs.opencv.org/modules/core/doc/… cartToPolar(InputArray x, InputArray y, OutputArray magnitude, OutputArray angle, bool angleInDegrees) It transforms the coordinates form cartesian to polar or spherical in 3D.
-