www.pudn.com > texture_extract.rar > shown.m, change:2006-03-03,size:627b


function show(imageData) 
% Syntax: show(image, figIdx) 
% 
%    Arg:    imageData      - image matrix to be show 
%            figIdx         - figure number 
% 
% Remark: Show the image with equal and tight axis and pink colormap 
% 
% Author: Haley 
%   Date: March 04, 1998 
 
% $Revision: 1.0 $ 
figIdx=figure; 
if errargn('show', nargin, [1 2], nargout, 0), error('*'), end 
 
if nargin > 1 
   figIdx = abs(round(figIdx)); 
   if figIdx ~= 0 
      figure(figIdx); 
   else 
      figure; 
   end 
end 
 
imagesc(imageData); 
%colormap(pink(256)); 
colormap(gray(256)); 
axis equal; 
axis tight; 
axis off; 
hold on;zoom