⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mapoffset.m

📁 matlab处理图像的一些基本方法。其中有一部分mex程序需要安装编译
💻 M
字号:
function newmap=mapoffset(map, c)%MAPOFFSET Move the colormap offset%% Copyright (c) 1995 by Claudio Rivetti and Mark Young% claudio@alice.uoregon.edu,    mark@alice.uoregon.edu%global ed_contrast MapSizeif nargin>2  error('Too many input arguments.');endif nargin<1  c=0;endif c<-10 | c>10  error('Input argument must be between -10 and 10');endif c>0  bc=round(MapSize*(1-c*0.1));  ab=MapSize-bc;  abmap=zeros(ab,3);  for i=1:size(abmap,2)    abmap(:,i)=abmap(:,i)+map(1,i);  end  bcmap=map(1:bc,:);else  ab=round(MapSize*(1+c*0.1));  bc=MapSize-ab;
  bcmap=zeros(bc,3);
  if bc>0     for i=1:size(bcmap,2)        bcmap(:,i)=bcmap(:,i)+map(MapSize,i);     end
  end  abmap=map(bc+1:MapSize,:);endnewmap=[abmap;bcmap];return

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -