pelkmanslab / CellProfilerPelkmans

A fork of CellProfiler1.0 developed by members of Pelkmans Lab https://www.pelkmanslab.org
GNU General Public License v2.0
1 stars 1 forks source link

DilateBackground error used by RelateAndJoinSegmentation #28

Open ewiger opened 8 years ago

ewiger commented 8 years ago

RelateAndJoinSegmentation generates the follwoing error in one of the modules:

Batch Error: RelateAndJoinSegmentation Attempted to access BoxPerObj(:,2); index out of bounds because size(BoxPerObj)=[0,0].
{Attempted to access BoxPerObj(:,2); index out of bounds because
size(BoxPerObj)=[0,0].

Error in DilateBackground (line 48)
N = floor(BoxPerObj(:,2)-distanceToObjectMax-1);                    f = N < 1;
N(f) = 1;

Error in RelateAndJoinSegmentation (line 77)
    CurrentObjNhood =
    DilateBackground(bwlabel(CurrentObjNhood));%bwmorph(CurrentObjNhood,'erode',1);

Error in CPCluster (line 39)
                handles = feval(ModuleName,handles);
Christophe-Freyre commented 8 years ago

Tested and fixed, thanks Markus !

ewiger commented 8 years ago

@Christophe-Freyre Ok. Thank you so much for the feedback. I will schedule the branch in mind (https://github.com/pelkmanslab/CellProfilerPelkmans/tree/fix_DilateBackground) for the merge with master at next possible opportunity.