[Insight-users] simple contour extractor for binary images

Luis Ibanez luis.ibanez at kitware.com
Mon Jul 12 10:11:40 EDT 2004


Hi Jerome,

Thanks a lot for posting your classes for contour extraction.

       Can we incorporate them in the toolkit  ?

If so, please let us know how you will like the author credits
to appear in the documentation for this class.


   Regards,


      Luis



------------------------
jerome schmid wrote:

> Hi everybody,
> 
> Reading the mailing lists, I have noticed that a user Yu long was looking
> for a contour extractor in itk. Luis Ibanez answered him that such filter is
> not directly implemented in ikt but that it will be easy to do it. I have
> done one for my personal use and I test it on binary images, and it seems to
> work fine... So please test it freely and send me any feddback if there are
> some porblems.
> 
> Simple use:
> 
> typedef itk::SimpleContourExtractorImageFilter< InImageType, OutImageType >
> ContourFilterType;
> ContourFilterType::Pointer contourFilter	= ContourFilterType::New();
> 
> // set input foreground and background values
> contourFilter->SetInputForegroundValue( 255 ); // let's suppose for example
> that 0, 255 belong to InImage and OutImage pixel type
> contourFilter->SetInputBackgroundValue( 0 );
> 
> // idem for background
> contourFilter->SetOutputForegroundValue( 255 );
> contourFilter->SetOutputBackgroundValue( 0 );
> 
> contourFilter->SetInput( previousFilter->GetOutput() );
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users





More information about the Insight-users mailing list