Workflow for modifying Cartesian images in the polar coordinate system.
Vous suivez désormais cette soumission
- Les mises à jour seront visibles dans votre flux de contenu suivi
- Selon vos préférences en matière de communication il est possible que vous receviez des e-mails
imcart2pol
Converts 2D Cartesian images to polar coordinate images, i.e. "unwraps" them about an origin. The result is a rectangular image whose vertical axis is radial, and horizontal axis is circumferential. The index 1 of the radial axis is the origin of the Cartesian coordinates image.
The intent of the code is to be used to make polar coordinate modifications to a Cartesian coordinate image more simply. The intended workflow goes as follows
im_c = <from source>
im_p = im_cart2pol(im_c, ...)
<modify im_p>
im_c = im_pol2cart(im_p, size(im_c), ...)
<use im_c>
The top-level functions are im_cart2pol.m and im_pol2cart.m. The file test.m contains an example of usage. Other files are helper functions. Note that im_pol2cart.m is not intended to be used in isolation, and no guarantees are made about output.
Overall the workflow works well, even on logical images, but has artifacts with thin features. The user may select which interp2 method is used for coordinates conversion as a string argument to the top-level functions.
Usage
Please see test.m for an example of how to use the functions. The output should look like the following image.
Acknowledgements
The code was inspired by
- ImToPolar by Prakash Manandhar
- polartrans.m by Peter Kovesi
- This answer by User swjm at Stackoverflow
Citation pour cette source
William Warriner (2026). Cartesian to polar image transform (https://github.com/wwarriner/matlab_imcart2pol), GitHub. Extrait(e) le .
Remerciements
Inspiré par : Polar To/From Rectangular Transform of Images
Informations générales
Compatibilité avec les versions de MATLAB
- Compatible avec toutes les versions
Plateformes compatibles
- Windows
- macOS
- Linux
Les versions qui utilisent la branche GitHub par défaut ne peuvent pas être téléchargées
| Version | Publié le | Notes de version | Action |
|---|---|---|---|
| 1.0.0.1 | Update title |
||
| 1.0.0 |

