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

imrotaterotating an image

Pic Source: Berkeley Segmentation Database

Best Answer

newImg is a double. Try making it uint8:
newImg = zeros(nRowsNew,nColsNew,3, 'uint8');
Related Question