[ITK-users] [ITK] Largest Connected Region

Matt McCormick matt.mccormick at kitware.com
Mon Jul 14 16:09:15 EDT 2014


Hi Michael,

This filter [1] can keep the largest object.  Use

  filter->SetAttribute( "PhysicalSize" )

and

  filter->SetNumberOfObject( 1 )

Hope this helps,
Matt

[1] http://www.itk.org/Doxygen/html/classitk_1_1BinaryShapeKeepNObjectsImageFilter.html

On Mon, Jul 14, 2014 at 1:58 PM, Michael Pinkert <mpinkert at wisc.edu> wrote:
> Hi everyone,
>
> I am using the Otsu algorithm as part of a pipeline to segment breast
> images, but the results consistently have several holes and isolated regions
> of noise, both of which are large problems I am looking to deal with.  I
> intend to use morphological operators for the hole problem, but I have not
> had luck finding a method to eliminate the isolated regions of noise while
> preserving the remainder of the image.
>
> The breast is a connected region in the results, and the noise is always a
> much smaller region.  Is there a filter that could obtain the largest
> connected region from from a binary image, so that the breast may be
> extracted and the noise removed?
>
> I have looked at some of the various connected region algorithms, but they
> require seeds in order to function, and I have not seen one that can
> automatically isolate the largest connected region from a binary mask and
> make it as an output.
>
> If none of the existing filters work I intend to write a new one to do so,
> but I thought it would be best to check first.
>
> Best regards,
> Michael Pinkert
>
>
>
> --
> View this message in context: http://itk-insight-users.2283740.n2.nabble.com/ITK-users-Largest-Connected-Region-tp7585889.html
> Sent from the ITK Insight Users mailing list archive at Nabble.com.
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/insight-users
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/mailman/listinfo/community


More information about the Insight-users mailing list