I'm trying to rotate an image without imrotate. My output image is unintelligible. Would appreciate any help. Sharing my code, input and output images.

조회 수: 5 (최근 30일)
Pic Source: Berkeley Segmentation Database

채택된 답변

Image Analyst
Image Analyst 2015년 9월 24일
newImg is a double. Try making it uint8:
newImg = zeros(nRowsNew,nColsNew,3, 'uint8');

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Geometric 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