>> a=imread('2.jpg');
>> se=translate(strel(1),[80 50]);
>> b=imdilate(a,se);
>> figure;
>> subplot(1,2,1);subimage(a);
>> title('原图像');
>> subplot(1,2,2);subimage(b);
>> title('图像平移');
img 图像平移
最新推荐文章于 2024-12-05 17:36:31 发布
>> a=imread('2.jpg');
>> se=translate(strel(1),[80 50]);
>> b=imdilate(a,se);
>> figure;
>> subplot(1,2,1);subimage(a);
>> title('原图像');
>> subplot(1,2,2);subimage(b);
>> title('图像平移');