

function labels = displayResults( snet, probs, img )    
    labels = cell(1, size(probs,1));
    %swlabels = cell(1, size(probs,1));
    for i=1:size(probs, 1)
        prob = probs(i,:,:);
        [a, ind] = max(prob);                
        labels{i} = snet.Layers(end).ClassNames{ind};
        fprintf('FPGA PREDICTION: %s \n', labels{i});        
        
%         % run snet prediction      
%         swprob = snet.predict(img(:,:,:,i));
%         [a ind] = max(swprob);                        
%         fprintf('SeriesNetwork PREDICTION: %s\n', snet.Layers(end).ClassNames{ind});
%         
%         prob = sort(prob, 'descend');
%         swprob = sort(swprob, 'descend');
%         fprintf('FPGA top 5: %0.6f %0.6f %0.6f %0.6f %0.6f \n', prob(1), prob(2), prob(3), prob(4), prob(5));
%         fprintf('SW top 5: %0.6f %0.6f %0.6f %0.6f %0.6f \n', swprob(1), swprob(2), swprob(3), swprob(4), swprob(5));
    end
end