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: imgFilename.m
    path of file: ./repos/Image-Harmonization-Dataset-iHarmony4/Lalonde and Efros/colorStatistics/3rd_party/segmentationBerkeley/Dataset
    
    the code of the file until where you have to start completion: function [filename] = imgFilename(iid)
% function [filename] = imgFileName(iid)
%
% Return image filename.
%
% INPUT
%	iid		Image ID.
%
% OUTPUT
%	filename	Image filename.
%
% David Martin <dmartin@eecs.berkeley.edu>

    
function [filename] = imgFilename(iid)
% function [filename] = imgFileName(iid)
%
% Return image filename.
%
% INPUT
%	iid		Image ID.
%
% OUTPUT
%	filename	Image filename.
%
% David Martin <dmartin@eecs.berkeley.edu>
% January 2003

filename = fullfile(bsdsRoot,'images','test',sprintf('%d.jpg',iid));
if length(dir(filename))==1, return; end