From this image i want to unwrap the gray part...so that i can represent this(pixel information) as a rectangle.
How to unwrap the circle?
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Umme Tania
il 9 Ott 2013
Commentato: Image Analyst
il 24 Gen 2014
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/150495/image.jpeg)
3 Commenti
Walter Roberson
il 9 Ott 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?
Risposta accettata
Alex Taylor
il 10 Ott 2013
Modificato: Alex Taylor
il 11 Ott 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);
Più risposte (1)
ramsha
il 24 Gen 2014
how to run this file ?
1 Commento
Image Analyst
il 24 Gen 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?
Vedere anche
Categorie
Scopri di più su Convert Image Type in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!