<div dir="ltr"><div><div><div><div>Hi,<br></div>I have a question about the LabelSetErodeImageFilter.<br></div><div>Is there a structurant element radius max, for the erode filter ?<br></div><div>I need to use a closing filter, i've chosen to use the  LabelSetDilateImageFilter followed by a LabelSetErodeImageFilter. <br>My problem is that, when i set the radius to 15 pix, both of the dilate and erode filters give a result, but when the radius is set to 16 pix, only the dilate filter returns a correct output, the erode filter returns a black image, filled with '0' values. But there is no reason for the filter to fail..<br> Images are 1024*1024, containing only  '0' and '1'.<br></div><div>I've tested several datasets, i've the same behaviour.<br><br></div><div><br></div>Here is my code (very basic) :<br><br><br>    typedef itk::Image<char, 3> Mask3dType;<br><br>    // dilate<br>    auto dilateFilter = itk::LabelSetDilateImageFilter<Mask3dType, Mask3dType>::New();<br>    dilateFilter->SetInput(input);<br>    dilateFilter->SetRadius(radius);<br><br>    // Erode<br>    auto erodeFilter = itk::LabelSetErodeImageFilter<Mask3dType, Mask3dType>::New();<br>    erodeFilter->SetInput(dilateFilter->GetOutput());<br>    erodeFilter->SetRadius(radius);<br><br>    erodeFilter->Update();<br>    <br><br></div>Thanks in advance.<br></div><div><br></div></div>