function hogFeature = computeHOGs_WHOorig ( img, settings ) %%TODO docu %% (1) check input if ( ( nargin >= 2 ) && ... ( ~isempty (settings) ) && ... ( isstruct ( settings ) ) && ... ( isfield(settings, 'sbin') )... ) sbin = settings.sbin; %just for backward compatibility we check both options elseif ( ( nargin >= 2 ) && ... ( ~isempty (settings) ) && ... ( isstruct ( settings ) ) && ... ( isfield(settings, 'i_binSize') )... ) sbin = settings.i_binSize; else sbin = 8; end %% (2) compute features if ( ndims(img) == 3 ) hogFeature = featuresHOGorig( double(img), sbin ); else hogFeature = featuresHOGorig( double(repmat(img,[1,1,3])), sbin ); end end