0001 function exf = exist_simimg(obj, fname)
0002
0003
0004
0005
0006
0007
0008 if nargin < 2
0009 fname = [];
0010 end
0011 if isempty(fname),fname=wvfname(obj);end
0012
0013 exf = 0;
0014 if ~exist(obj.wvol.fname, 'file'), return,end
0015
0016 tmpobj = phiw_wvimg(obj.wvol.fname,struct('noproc',1));
0017 if isempty(tmpobj), return,end
0018
0019 exf = obj.wavelet == tmpobj.wavelet & ...
0020 obj.scales == tmpobj.scales & ...
0021 all(obj.wvol.dim(1:3) == tmpobj.wvol.dim(1:3)) & ...
0022 all(obj.wvol.mat(:)==tmpobj.wvol.mat(:));
0023
0024