function varargout = wtranslate(varargin)
%WTRANSLATE Translation of strings for GUI and command line functions.
% M. Misiti, Y. Misiti, G. Oppenheim, J.M. Poggi 01-Nov-2011.
% Last Revision: 21-Jul-2013.
% Copyright 1995-2013 The MathWorks, Inc.
% $Revision: 1.1.6.12 $
nbIN = nargin;
if nbIN<2
callingSTR = lower(varargin{1});
if ~strncmpi(callingSTR,'ORI',3)
switch callingSTR
case 'manlvl';
varargout{1} = getWavMSG('Wavelet:LastMessages:ManLVL');
case 'manglb'
varargout{1} = getWavMSG('Wavelet:LastMessages:ManGLB');
case 'lstcolormap'
names = {'pink','cool','gray','hot','jet','bone','copper',...
'hsv','prism','one_pink','one_cool','one_gray','one_hot','one_jet', ...
'one_bone','autumn','spring','winter','summer'};
nbMaps = length(names);
lst = cell(nbMaps,1);
for k = 1:nbMaps
lst{k} = getWavMSG(['Wavelet:LastMessages:' names{k}]);
end
varargout{1} = lst;
case 'lstentropy' % Translated entropies name
names = {'shannon','threshold','norm', ...
'logenergy','sure','user'};
nbEnt = length(names);
lst = cell(nbEnt,1);
for k = 1:nbEnt
lst{k} = getWavMSG(['Wavelet:LastMessages:' names{k}]);
end
varargout{1} = lst;
case 'mdw1dmode' % Translated mdw1d visualization modes
varargout{1} = {...
getWavMSG('Wavelet:LastMessages:SupMode'); ...
getWavMSG('Wavelet:LastMessages:SepMode'); ...
'-------------------';...
getWavMSG('Wavelet:LastMessages:DecMode'); ...
getWavMSG('Wavelet:LastMessages:DecModeCfs'); ...
getWavMSG('Wavelet:LastMessages:StemMode'); ...
getWavMSG('Wavelet:LastMessages:StemModeAbs'); ...
getWavMSG('Wavelet:LastMessages:StemModeSqr'); ...
getWavMSG('Wavelet:LastMessages:StemModeEner'); ...
getWavMSG('Wavelet:LastMessages:TreeMode') ...
};
case 'mdw1dmodeini' % Translated mdw1d visualization modes
varargout{1} = {...
getWavMSG('Wavelet:LastMessages:SupMode'); ...
getWavMSG('Wavelet:LastMessages:SepMode') ...
};
case 'ahc_dist'
varargout{1} = {...
getWavMSG('Wavelet:LastMessages:euclidean'); ...
getWavMSG('Wavelet:LastMessages:seuclidean'); ...
getWavMSG('Wavelet:LastMessages:cityblock'); ...
getWavMSG('Wavelet:LastMessages:mahalanobis'); ...
getWavMSG('Wavelet:LastMessages:minkowski'); ...
getWavMSG('Wavelet:LastMessages:cosine'); ...
getWavMSG('Wavelet:LastMessages:correlation'); ...
getWavMSG('Wavelet:LastMessages:spearman'); ...
getWavMSG('Wavelet:LastMessages:hamming'); ...
getWavMSG('Wavelet:LastMessages:jaccard'); ...
getWavMSG('Wavelet:LastMessages:chebychev'); ...
'-------------------'; ...
getWavMSG('Wavelet:LastMessages:wenergy'); ...
getWavMSG('Wavelet:LastMessages:wenergyPER'); ...
getWavMSG('Wavelet:LastMessages:userdef') ...
};
case 'ahc_link'
varargout{1} = {...
getWavMSG('Wavelet:LastMessages:single'); ...
getWavMSG('Wavelet:LastMessages:complete'); ...
getWavMSG('Wavelet:LastMessages:average'); ...
getWavMSG('Wavelet:LastMessages:weighted'); ...
getWavMSG('Wavelet:LastMessages:centroid'); ...
getWavMSG('Wavelet:LastMessages:median'); ...
getWavMSG('Wavelet:LastMessages:ward') ...
};
case 'kmeans_dist'
varargout{1} = {...
getWavMSG('Wavelet:LastMessages:seuclidean'); ...
getWavMSG('Wavelet:LastMessages:cityblock'); ...
getWavMSG('Wavelet:LastMessages:cosine'); ...
getWavMSG('Wavelet:LastMessages:hamming') ...
};
case 'kmeans_link'
varargout{1} = {...
getWavMSG('Wavelet:LastMessages:sample'); ...
getWavMSG('Wavelet:LastMessages:uniform'); ...
getWavMSG('Wavelet:LastMessages:cluster') ...
};
case 'fus_meth'
varargout{1} = {...
getWavMSG('Wavelet:LastMessages:max'); ...
getWavMSG('Wavelet:LastMessages:min'); ...
getWavMSG('Wavelet:LastMessages:mean'); ...
getWavMSG('Wavelet:LastMessages:rand'); ...
getWavMSG('Wavelet:LastMessages:linear'); ...
getWavMSG('Wavelet:LastMessages:UD_fusion'); ...
getWavMSG('Wavelet:LastMessages:DU_fusion'); ...
getWavMSG('Wavelet:LastMessages:LR_fusion'); ...
getWavMSG('Wavelet:LastMessages:RL_fusion'); ...
getWavMSG('Wavelet:LastMessages:img1'); ...
getWavMSG('Wavelet:LastMessages:img2'); ...
getWavMSG('Wavelet:LastMessages:userdef') ...
};
end
else
callingSTR = callingSTR(5:end);
switch callingSTR
case 'lstcolormap' % Original colormap name
varargout{1} = mextglob('get','Lst_ColorMap');
case 'lstentropy' % Original entropies name
varargout{1} = {'shannon','threshold','norm', ...
'log energy','sure','user'};
case 'mdw1dmode' % Original mdw1d visualization modes
varargout{1} = {'Superimpose Mode';'Separate Mode';...
'-------------------';...
'Full Dec Mode';'Full Dec Mode (Cfs)';...
'Stem Mode';'Stem Mode (Abs)';'Stem Mode (Squared)';...
'Stem Mode (Energy Ratio)';'Tree Mode'};
case 'mdw1dmodeini' % Original mdw1d visualization modes
varargout{1} = {'Superimpose Mode';'Separate Mode'};
case 'ahc_dist'
varargout{1} = {...
'euclidean','seuclidean','cityblock','mahalanobis', ...
'minkowski','cosine','correlation','spearman','hamming', ...
'jaccard','chebychev','------------------- ', ...
'wenergy','wenergyPER','userdef' ...
};
case 'ahc_link'
varargout{1} = {...
'single','complete','average','weighted', ...
'centroid','median','ward'};
case 'kmeans_dist'
varargout{1} = {'sqeuclidean','cityblock','cosine','hamming'};
case 'kmeans_link'
varargout{1} = {'sample','uniform','cluster'};
case 'fus_meth'
varargout{1} = {'max','min','mean','rand','linear', ...
'UD_fusion','DU_fusion','LR_fusion','RL_fusion', ...
'img1','img2','userDEF'};
end
end
return
end
callingTool = lower(varargin{1});
hObject = varargin{2};
uic