Introduction - If you have any usage issues, please Google them yourself
1. image reversal
The MATLAB program is implemented as follows:
I=imread ('xian.bmp');
J=double (I);
J=-J+ (256-1);% image inversion linear transformation
H=uint8 (J);
Subplot (1,2,1), imshow (I);
Subplot (1,2,2), imshow (H);