2. Open matlab and copy the following code:
I 1 = imread(' C:\ Users \ Administrator \ Desktop \ 1 . jpg ');
i 1=i 1(:,:, 1);
I 1 = I 1 & gt; 120; The% threshold can be set by yourself.
I 1 = uint 8(I 1);
I 1(find(I 1 = = 1))= 255; Fig. im show (I1); imwrite(i 1,' C:\ Users \ Administrator \ Desktop \ qianming . png ');
3. Then the completed electronic signature will appear on your desktop, and the final result is as follows: