function delgray(filename,filepath,mode)
%   This software is protected by german copyright and international treaties.             
%   Copyright 2004 Markus Junghöfer & Peter Peyk. All Rights Reserved.                     
%                                                                                          
%   THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE        
%   NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO,    
%   WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE    
%   OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS,
%   TRADEMARKS OR OTHER RIGHTS. COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT,       
%   INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE      
%   OR DOCUMENTATION.                                                                      


%-------------------------------------------------
%
% function definition
%
% colors pixels with equal red, green and blues brightnesses white
%
%---------------------------------------------------


%for i=3:filelistsize
%   Bild=imread(filelist(i).name,startformat);
%   TransBild=num2cell(Bild);
%	Bildgroesse=size(Bild);
%
%   	for k=1:Bildgroesse(2)
%         if and((TransBild{j,k,1}==TransBild{j,k,2}),(TransBild{j,k,2}==TransBild{j,k,3}))
%            for l=1:3
%            Bild(j,k,l)=255;
%            end
%         end
%     	end
%   end
%	Zielbildname=strrep(filelist(i).name, startformat,endformat);
%	imwrite(Bild,Zielbildname,endformat);
%end
ok
return