Skip to content
Snippets Groups Projects
Commit 18c5d1c3 authored by Nicola Vigano's avatar Nicola Vigano
Browse files

TestLoadData: fixed meaning of mbb in blobs

parent 76f35900
No related branches found
No related tags found
No related merge requests found
......@@ -398,13 +398,13 @@ for n = 1:num_dets
fprintf('\b\b(%f seconds)\n - Calculate boundaries of measured blobs inside blob bounding box..', toc(c))
for ii = 1:nbl
uproj = sum(sum(abs(bl(ii).intm), 2), 3);
bl(ii).mbbu = [find(uproj, 1, 'first'), find(uproj, 1, 'last')];
bl(ii).mbbu = [find(uproj, 1, 'first'), find(uproj, 1, 'last')] + bl(ii).bbuim(1) - 1;
vproj = sum(sum(abs(bl(ii).intm), 1), 3);
bl(ii).mbbv = [find(vproj, 1, 'first'), find(vproj, 1, 'last')];
bl(ii).mbbv = [find(vproj, 1, 'first'), find(vproj, 1, 'last')] + bl(ii).bbvim(1) - 1;
wproj = sum(sum(abs(bl(ii).intm), 1), 2);
bl(ii).mbbw = [find(wproj, 1, 'first'), find(wproj, 1, 'last')];
bl(ii).mbbw = [find(wproj, 1, 'first'), find(wproj, 1, 'last')] + bl(ii).bbwim(1) - 1;
bl(ii).mbbsize = [bl(ii).mbbu(2) - bl(ii).mbbu(1) + 1, ...
bl(ii).mbbv(2) - bl(ii).mbbv(1) + 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