diff --git a/frameLink/missingSeg2to1.m b/frameLink/missingSeg2to1.m index 41be4d6..0002da3 100644 --- a/frameLink/missingSeg2to1.m +++ b/frameLink/missingSeg2to1.m @@ -134,7 +134,7 @@ [minIndex,minRegEScore, minDA,segs_close] = findBestSegs (TmpSegsLabel,segs_list,dist,newmask,CONST,areaR1,areaR2,tmp.segs.scoreRaw); % check if a good solution was found -if ~isempty(minIndex) && any (minRegEScore) > 0 && minDA < 1.5*CONST.trackOpti.AREA_CHANGE_LIMIT +if ~isempty(minIndex) && any (minRegEScore) > 0 && minDA < 1.5*CONST.trackOpti.DA_MAX % a good solution num_segs = numel(segs_close); vect = makeVector(minIndex-1,num_segs);