Matlab或者matplotlib中plot绘制的图像旋转指定度数,怎么办

2024-11-02 16:35:34
推荐回答(1个)
回答1:

用CANNY实现 img=imread(nm); [x y z]=size(img); if x==1 rst=edge(img,'canny'); elseif z==3 img1=rgb2ycbcr(img); dx1=ede(img1(:,:,1),'canny'); dx1=(dx1*25); img2(1)=d1; img2(2)=img1(:,:,2); img2(3)=img1(:,:,3); rslt=ycbcr2rgb(img2); end R=rslt;