<div dir="ltr">There isn't meant to be a limit to size of structuring element. A couple of possibilities I can think of. If your test involves single pixels set to 1, then perhaps there's a rounding error leading to the blank image. Single pixels are a slightly tricky corner case when dealing with large structuring elements, and probably not what you're going to be using in practice. If it is what you're using for the test, try a larger component instead.<div><br></div><div>Secondly, something to consider. Are you actually after label operations? Testing with 1s and 0s only is a binary case and can be addressed with the ParabolicMorphology module. The computational bits are similar but there isn't the overhead of tracking the labels.</div><div><br></div><div>Finally closings on label sets are somewhat poorly defined, which is why there isn't a label closing filter. You need to consider the precise behaviour you want when performing the erosion - should it separate touching labels or not. Also, you can construct arrangements of labels which will result in some components disappearing, which wouldn't happen if the operation was applied to each component separately - consider one label completely surrounded by another - the dilation wouldn't change the surrounded label, allowing the subsequent erosion operation to delete it if the structuring element is large enough.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 10, 2018 at 6:02 PM, Aurelie Le breton <span dir="ltr"><<a href="mailto:lebreton.a@gmail.com" target="_blank">lebreton.a@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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::<wbr>LabelSetDilateImageFilter<<wbr>Mask3dType, Mask3dType>::New();<br>    dilateFilter->SetInput(input);<br>    dilateFilter->SetRadius(<wbr>radius);<br><br>    // Erode<br>    auto erodeFilter = itk::LabelSetErodeImageFilter<<wbr>Mask3dType, Mask3dType>::New();<br>    erodeFilter->SetInput(<wbr>dilateFilter->GetOutput());<br>    erodeFilter->SetRadius(radius)<wbr>;<br><br>    erodeFilter->Update();<br>    <br><br></div>Thanks in advance.<br></div><div><br></div></div>
<br>The ITK community is transitioning from this mailing list to <a href="http://discourse.itk.org" rel="noreferrer" target="_blank">discourse.itk.org</a>. Please join us there!<br>
______________________________<wbr>__<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_<wbr>FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://itk.org/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">https://itk.org/mailman/<wbr>listinfo/insight-users</a><br>
<br></blockquote></div><br></div>