Home > database >  How to use matlab language replacement will be black and white pictures of black and white
How to use matlab language replacement will be black and white pictures of black and white

Time:09-16

Excuse me each great god, and how to use matlab language replacement will be black and white pictures of black and white

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
  • Related