How to rotate back a streched image?
조회 수: 1 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
채택된 답변
Image Analyst
2014년 3월 13일
편집: Alex Taylor
2014년 3월 13일
[rows, columns, numberOfColorChannels] = size(originalImage);
scaledImage = imresize(originalImage, [rows, int32(columns/2)]);
댓글 수: 4
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 Exchange에서 Image Segmentation and Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!