对于初学者来说,可以通过以下Matlab代码实现图像反转:g=imread('HUMAN.jpg'); s=255-g; subplot(121); imshow(g); subplot(122); imshow(s);