image_invert.m
来自「matlab处理图像的一些基本方法。其中有一部分mex程序需要安装编译」· M 代码 · 共 35 行
M
35 行
function image_invert%IMAGE_INVERT Invert the actual image.%% IMAGE_INVERT%%%% Copyright (c) 1995 by Claudio Rivetti and Mark Young% claudio@alice.uoregon.edu, mark@alice.uoregon.edu%global I Undofunif isempty(I) return;endif ~isimage setviewmode('TOPVIEW'); showimage;endstatusbar('Inverting image...');s=min(min(I))+max(max(I));zr=fliplr(zrange)*(-1);%zrange(zr);%setimage(I*(-1))+s;setimage(s-I);un=Undofun;Undofun=['zrange(fliplr(zrange)*(-1));' un];clearstatusbar;return
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?