How to unwrap the circle?

2 vues (au cours des 30 derniers jours)
Umme Tania
Umme Tania le 9 Oct 2013
Commenté : Image Analyst le 24 Jan 2014
  3 commentaires
Walter Roberson
Walter Roberson le 9 Oct 2013
I am not sure what you mean by "unwrap" ? Are you wanting to project from the circle to a rectangle, interpolating to form a rectangular image like from stretching a sheet?
Umme Tania
Umme Tania le 10 Oct 2013
yes

Connectez-vous pour commenter.

Réponse acceptée

Alex Taylor
Alex Taylor le 10 Oct 2013
Modifié(e) : Alex Taylor le 11 Oct 2013
Use a polar transformation with the center of the transformation set to the center of the circle (roughly [161, 172]).
I like Peter Kovesi's implementation of the polar transformation:
a = imread('http://www.mathworks.com/matlabcentral/answers/uploaded_files/482/crop_image.jpg');
out = polartrans(a,500,500,161,172,'linear','valid');
imshow(out);
  1 commentaire
Umme Tania
Umme Tania le 11 Oct 2013
Thank you

Connectez-vous pour commenter.

Plus de réponses (1)

ramsha
ramsha le 24 Jan 2014
how to run this file ?
  1 commentaire
Image Analyst
Image Analyst le 24 Jan 2014
What file? Whatever file it is, can't you just click the green triangle? Or type the name of it into the command window?

Connectez-vous pour commenter.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by