Skip to content
Snippets Groups Projects
Commit b9348026 authored by Christopher Randolph Rhodes's avatar Christopher Randolph Rhodes
Browse files

Renamed a few output files

parent d8cb0178
No related branches found
No related tags found
No related merge requests found
......@@ -198,7 +198,7 @@ def compare_object_maps(truth: GenericImageDataAccessor, inferred: GenericImageD
ob_id = skimage.measure.label(inf_img)
pr = skimage.measure.regionprops_table(ob_id, properties=['label', 'area'])
mask = inf_img == pr['label'][pr['area'].argmax()]
dd['inferred_label'] = np.unique(mask * inf_img)[1]
dd['inferred_label'] = np.unique(mask * inf_img)[-1] # occasionally no object in frame
dd['multiples'] = True
else: # exactly one unique object class in frame
dd['inferred_label'] = unique[1]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment