MATLAB Answers

How to unwrap the circle?

14 views (last 30 days)
Umme Tania
Umme Tania on 9 Oct 2013
Commented: Image Analyst on 24 Jan 2014


Umme Tania
Umme Tania on 9 Oct 2013
From this image i want to unwrap the gray that i can represent this(pixel information) as a rectangle.
Walter Roberson
Walter Roberson on 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?

Sign in to comment.

Accepted Answer

Alex Taylor
Alex Taylor on 10 Oct 2013
Edited: Alex Taylor on 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('');
out = polartrans(a,500,500,161,172,'linear','valid');

  1 Comment

Umme Tania
Umme Tania on 11 Oct 2013
Thank you

Sign in to comment.

More Answers (1)

ramsha on 24 Jan 2014
how to run this file ?

  1 Comment

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

Sign in to comment.

Sign in to answer this question.