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.

Share:
10,595

Related videos on Youtube

Luis Carlos
Author by

Luis Carlos

Updated on June 04, 2022

Comments

  • Luis Carlos
    Luis Carlos almost 2 years

    Hi i want to transform a image like this (right to left image ): enter image description here

    I have searching about functions like cvCartToPolar but i dont know how to use it..

    Can someone help me? :)

    • Michele mpp Marostica
      Michele mpp Marostica over 10 years
      That 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.