3 Kommentare

Umme Tania
Umme Tania am 9 Okt. 2013
Bearbeitet: Umme Tania am 9 Okt. 2013
From this image i want to unwrap the gray part...so that i can represent this(pixel information) as a rectangle.
Walter Roberson
Walter Roberson am 9 Okt. 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 am 10 Okt. 2013
yes

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Alex Taylor
Alex Taylor am 10 Okt. 2013
Bearbeitet: Alex Taylor am 11 Okt. 2013

0 Stimmen

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);

Weitere Antworten (1)

ramsha
ramsha am 24 Jan. 2014

0 Stimmen

how to run this file ?

1 Kommentar

Image Analyst
Image Analyst am 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?

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by