function image = showStatistics(map,name,percent,stats) map2d = reshape(map,[203 253]); %[image imagename] = getTesting(stats,name); [image imagename] = getPeaks(stats); figure(1); imagesc(image); colormap(gray); drawnow; axis equal; hold on [row,col] = find(map2d==max(max(map2d))) big = max(max(map2d)) %[row,col] = find(map>.5); topLeft = [col row]; topRight = [col+66 row]; bottomLeft = [col row+36]; bottomRight = [col+66 row+36]; line([col col+66], [row,row], 'Color', 'r', 'LineWidth', 1); line([col col], [row,row+36], 'Color', 'r', 'LineWidth', 1); line([col+66 col+66], [row,row+36], 'Color', 'r', 'LineWidth', 1); line([col col+66], [row+36,row+36], 'Color', 'r', 'LineWidth', 1); row = row + 18; col = col + 33; [row60,col60] = find(map2d>(big*.6)); [row70,col70] = find(map2d>(big*.7)); [row90,col90] = find(map2d>(big*.9)); [row80,col80] = find(map2d>(big*.8)); plot(col60,row60,'b+'); plot(col70,row70,'b+'); plot(col80,row80,'y+'); plot(col90,row90,'r+'); hold off figure(2); imagesc(map2d); colormap(gray); drawnow;