我注意到旋转后的二进制图像像素变得密集/厚。旋转后有没有办法保留原始图像?附上样本图像和MATLAB代码。
subplot(1,2,1),imshow(x200),title('original binary image');
theta=4;
tform = affine2d([cosd(theta) -sind(theta) 0;sind(theta) cosd(theta) 0; 0 0 1]);
[RI, ref]= imwarp(x200,tform);
subplot(1,2,2),imshow(RI),title('binary image rotated by few degrees');