Mentions légales du service

Skip to content
Snippets Groups Projects
Commit bcbfa6d0 authored by DIB Elian's avatar DIB Elian
Browse files

Added function to expand super-ray labels

in order to allow super-ray overlap
parent 85a8970f
No related branches found
No related tags found
No related merge requests found
function Ref = expandLabel(Ref,se)
%EXPANDLABEL Summary of this function goes here
% Detailed explanation goes here
[Offset,Color,Label] = SR.SetToFields(Ref);
numLab = numel(Label);
for lab = 1:numLab
M = imdilate(Label{lab}==lab,se) & Label{lab}~=0;% & ~isnan(Label{lab});
Label{lab}(M) = lab;
end
Ref = SR.FieldsToSet(Offset,Color,Label);
end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment