https://github.com/reproducibilitystamp/dataset-processing
Tip revision: 36fbb80f231a8a564a730b8ad7d2787491b2a696 authored by acarlier on 20 May 2016, 09:34:24 UTC
- comments added
- comments added
Tip revision: 36fbb80
computeMajority.m
% For a given set of annotations, compute the annotation that takes for
% each triangle the most cited annotation
function majority = computeMajority(annotations)
% Create a matrix of annotations
A = annotations{1};
for ind_a = 2:length(annotations)
A = [A ; annotations{ind_a}];
end
majority = mode(A);
end