
labels = displayResults(snet, results, img);

% insert labels
for j=1:numRow
    y = 190 + (j-1)*227;
    for i =1:numImages
        x = 75 + (i-1)*227;
        position = [x y];
        label = labels{i+(j-1)*numImages};
        k = strfind(label,',');
        if ~isempty(k)
            label = label(1:k(1)-1);
        end
        imgFilesArray = insertText(imgFilesArray, position, label, 'FontSize', 18, 'BoxColor', 'red');
    end
end

figure(1);
imshow(imgFilesArray);


