How to unwrap the circle?

9 次查看(过去 30 天)
  3 个评论
Walter Roberson
Walter Roberson 2013-10-9
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?

请先登录,再进行评论。

采纳的回答

Alex Taylor
Alex Taylor 2013-10-10
编辑:Alex Taylor 2013-10-11
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 个)

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

请先登录,再进行评论。

Community Treasure Hunt

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

Start Hunting!

Translated by