You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: computeImageFeatures.m
    path of file: ./repos/ciatah/+ciapkg/+image
    
    the code of the file until where you have to start completion: function [imgStats] = computeImageFeatures(inputImages, varargin)
	% [imgStats] = computeImageFeatures(inputImages, varargin)
	% 
	% Filters large and small objects in an set of images, returns filtered matricies along with vector with decisions and sizes.
	% 
	% Biafra Ahanonu
	% 2013.10.31
	% based on SpikeE code
	% 
	% inputs
	%   inputImages - [x y nSignals]
	% 
	% outputs
	%   imgStats -
	% 
	% options
	%   minNumPixels
	%   maxNumPixels
	%   thresholdImages

	% changelog
		
    
function nUpdateParforProgress(~)
		if ~verLessThan('matlab', '9.2')
			p = p + 1;
			% if (mod(p,nInterval)==0||p==nImages)&&options_waitbarOn==1
			% 	cmdWaitbar(p,nImages,'','inputStr','','waitbarOn',1);
			% end
			if (mod(p,nInterval)==0||p==2||p==nImages)&&options_waitbarOn==1
				if p==nImages
					fprintf('%d\n',round(p/nImages*100))
				else
					fprintf('%d|',round(p/nImages*100))
				end
				% cmdWaitbar(p,nImages,'','inputStr','','waitbarOn',1);
			end
		end
	end
end

% OLD code


% regionStat
% figure;imagesc(inputImages(:,:,imageNo));
% for ifeature = featureList
% 	% regionStat = regionprops(iImage, ifeature{1});
% 	try
% 		% eval(['imgStats.' ifeature{1} '(imageNo) = regionStat.' ifeature{1} ';']);
% 		imgStats.(ifeature{1})(imageNo) = regionStat.(ifeature{1});
% 	catch
% 		% eval(['imgStats.' ifeature{1} '(imageNo) = NaN;']);
% 		imgStats.(ifeature{1})(imageNo) = NaN;
% 	end