Diff of /matlab/plot_detections.m [000000] .. [b758a2]

Switch to unified view

a b/matlab/plot_detections.m
1
function plot_detections(imageFile, csvFile, threshold)
2
3
A = imread(imageFile);
4
results = csvread(csvFile);
5
6
% cut results off at the threshold
7
for i=1:size(results,1)
8
    if results(i,3) < threshold
9
        results = results(1:i-1,:);
10
            break
11
    end
12
end
13
14
% mark detections
15
for i=1:size(results,1)
16
    A = insertShape(A, 'FilledCircle', [results(i,2) results(i,1) 10], 'Opacity', 1);
17
end
18
19
imwrite(A,'detections.bmp')