作业帮 > 综合 > 作业

本程序是两幅图相加的matlab程序:I3(450:,)=255;什么意思?I7(:,313)=255;I7(450,:

来源:学生作业帮 编辑:搜狗做题网作业帮 分类:综合作业 时间:2024/04/16 19:36:42
本程序是两幅图相加的matlab程序:I3(450:,)=255;什么意思?I7(:,313)=255;I7(450,:)=255;什么意思?
是两幅图像经配准后相加的matlab详细程序(若读者能分析以下程序鄙人将感激万分):I1=imread('f:/x3.jpg');
I2=imread('f:/x3_1.jpg');
I4=double(I1);
I5=double(I2);
%figure,imshow(uint8(dat1));
[width,height]=size(I5);
NewR2=zeros(width,height);
for i=1:width
for j=1:height
source_x=i+1;
source_y=j+1;
if(source_x>width||source_y>height)
NewR2(i,j)=0;
else
if(source_x/double(uint16(source_x))==1.0&source_y/double(uint16(source_y))==1.0)
NewR2(i,j)=I5(int16(source_x),int16(source_y));

end
end
end
end
I6=NewR2;
I3=uint8(I4);I3(450,:)=255;
I7=uint8(I6);
I7(:,313)=255;I7(450,:)=255;
figure,imshow(I3);
figure,imshow(I7);
K=imadd(I3,I7,'uint16');
figure,imshow(K,[]);
本程序是两幅图相加的matlab程序:I3(450:,)=255;什么意思?I7(:,313)=255;I7(450,:
阿道夫地方