CodePudding user response:
I=imread (' C: \ Users \ Lin \ Desktop \ work_3 \ pur \ figure 1-1. PNG ');P=imread (' C: \ Users \ Lin \ Desktop \ work_3 \ pur \ IM1-4. PNG ');
[M, N]=size (I);
J=I;
O=J;
For I=1: M
For j=1: N
If (I (I, j)==0)
J (I, J)=0.
The else
J (I, J)=255;
End
End
end
CodePudding user response:
B=255 - a;finished