How to rotate back a streched image?

1 回表示 (過去 30 日間)
Steven
Steven 2014 年 3 月 13 日
編集済み: Steven 2016 年 4 月 26 日
I have an image which is stretched in one direction. How can I turn it back to normal plane, so it becomes again a circle? I know about the scaling and calibration in both directions. Suppose that the pixel size in left-to-right direction is two times the one in up-to-down direction.
Thanks so much.
Steven

採用された回答

Image Analyst
Image Analyst 2014 年 3 月 13 日
編集済み: Alex Taylor 2014 年 3 月 13 日
[rows, columns, numberOfColorChannels] = size(originalImage);
scaledImage = imresize(originalImage, [rows, int32(columns/2)]);
  4 件のコメント
Steven
Steven 2014 年 3 月 14 日
my main object is the circle and by removing background, I mean making the background (region over which the circle lies!) say, white, so that I can more easily analyze the image. What I want finally is the area of circle, but in late sequences, they are not as clear and vivid as this circle, and so removing the background may help.
Thanks Steven
Image Analyst
Image Analyst 2014 年 3 月 14 日
No, it probably won't. Once you've segmented the image into circle and non-circle (foreground and background) actually whitening or blackening is unnecessary. Just use the binary image in regionprops() - no whitening of background is needed to make any measurements.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGeometric Transformation and Image Registration についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by