[prev in list] [next in list] [prev in thread] [next in thread] 

List:       insight-users
Subject:    Re: [ITK-users] Binary Contour with outliers
From:       "Becksfort, Jared" <Jared.Becksfort () STJUDE ! ORG>
Date:       2018-01-26 16:56:37
Message-ID: MWHPR04MB11698FC2B51C7D6BE2B70AD792E00 () MWHPR04MB1169 ! namprd04 ! prod ! outlook ! com
[Download RAW message or body]

Yes, sorry.  I sent another email with the proper format shortly thereafter.  Sorry \
for the noise.


Jared

________________________________
From: Jon Haitz Legarreta <jhlegarreta@vicomtech.org>
Sent: Friday, January 26, 2018 2:04:09 AM
To: Becksfort, Jared
Cc: ITK Users
Subject: Re: [ITK-users] Binary Contour with outliers

Dear Jared,
thanks for your question !

Your question seems to drift apart from the one that started this
thread or the subject of this thread.

In order to increase the chances of it getting answered, could please
post your question on a different thread?

Please, read our community discussion guidelines, especially the "Keep
tidy" section:
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdiscourse.itk.org%2Fg \
uidelines&data=01%7C01%7CJared.Becksfort%40stjude.org%7C2070d2bf4b7944b95bb308d564937a \
1b%7C22340fa892264871b677d3b3e377af72%7C0&sdata=xPacI3N%2B2bxM6VjGt5o%2Be7JQjrd7fAtQS12nDxDmdWk%3D&reserved=0


Also, providing a minimal, compilable code snippet (either through a
GitHub gist) or by attaching your own files reproducing the issue
(.cxx files, CMakeLists.txt, your own input data, etc.) would help.

Note that we are transitioning from this mailing list to discourse:
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdiscourse.itk.org&dat \
a=01%7C01%7CJared.Becksfort%40stjude.org%7C2070d2bf4b7944b95bb308d564937a1b%7C22340fa8 \
92264871b677d3b3e377af72%7C0&sdata=Ml2KzsOGytZ5ylV9khEWD0rs3QA89TRY2W8IWdCO8tw%3D&reserved=0


So we'd be grateful if you could post your question there taking into
account the above.

Cheers,
JON HAITZ

--



On 26 January 2018 at 00:56, Becksfort, Jared
<Jared.Becksfort@stjude.org> wrote:
> Hello,
> 
> I am having some difficulty overlaying boolean masks onto Nifti images. The code \
> below is basically what is shown here (which does work for me when I use the images \
> on the page):. https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fitk. \
> org%2FITKExamples%2Fsrc%2FFiltering%2FImageFusion%2FOverlayLabelMapOnTopOfAnImage%2F \
> Documentation.html&data=01%7C01%7CJared.Becksfort%40stjude.org%7C2070d2bf4b7944b95bb \
> 308d564937a1b%7C22340fa892264871b677d3b3e377af72%7C0&sdata=j7IB4JaPUdTP%2BnMM4ez7Hb4aiuOQ%2Fk41WI2RCh%2FvQJA%3D&reserved=0
>  
> The differences that I can see are that I am using 3 dimensions and Nifti float \
> input rather than 2D images of the same pixel and file types (8-bit PNG) in the \
> example. 
> Can someone please tell me what I have done wrong?  The output image is garbled \
> beyond recognition. 
> Thanks,
> Jared
> 
> const unsigned int Dimension = 3;
> 
> typedef float PixelType;
> typedef unsigned char LabelType;
> 
> typedef itk::Image< PixelType, Dimension > ImageVolumeType;
> typedef itk::Image< LabelType, Dimension > ContourVolumeType;
> 
> typedef itk::ImageFileReader<ContourVolumeType> ContourReaderType;
> typedef itk::ImageFileReader< ImageVolumeType >  ReaderType;
> 
> ReaderType::Pointer reader = ReaderType::New();
> reader->SetFileName( infile1 );
> 
> ContourReaderType::Pointer labelReader = ContourReaderType::New();
> labelReader->SetFileName(infile2);
> 
> typedef itk::LabelObject< LabelType, Dimension > LabelObjectType;
> typedef itk::LabelMap< LabelObjectType > LabelMapType;
> 
> typedef itk::LabelImageToLabelMapFilter< ContourVolumeType, LabelMapType > \
> ConverterType; ConverterType::Pointer converter = ConverterType::New();
> converter->SetInput( labelReader->GetOutput() );
> 
> typedef itk::LabelMapOverlayImageFilter< LabelMapType, ImageVolumeType > \
> FilterType; FilterType::Pointer filter = FilterType::New();
> filter->SetInput( converter->GetOutput() );
> filter->SetFeatureImage( reader->GetOutput() );
> filter->SetOpacity(0.5);
> 
> 
> typedef itk::ImageFileWriter< FilterType::OutputImageType > WriterType;
> WriterType::Pointer writer = WriterType::New();
> writer->SetFileName(outfile);
> writer->SetInput( filter->GetOutput() );
> writer->Update();
> 
> On 1/23/18, 4:19 PM, "Insight-users on behalf of Matt McCormick" \
> <insight-users-bounces@itk.org on behalf of matt.mccormick@kitware.com> wrote: 
> Hi,
> 
> By running OpeningByReconstructionImageFilter:
> 
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fitk.org%2FDoxygen%2 \
> Fhtml%2Fclassitk_1_1OpeningByReconstructionImageFilter.html&data=01%7C01%7Cjared.bec \
> ksfort%40stjude.org%7Ce86b42bd4f52460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&sdata=qbR%2BtUIsnrSfh01yNV9w94GGa%2FdEA7uXrisa%2BpVyJ0k%3D&reserved=0
>  
> before the binary contour, the smaller objects can be removed.
> 
> HTH,
> Matt
> 
> On Tue, Jan 23, 2018 at 5:06 PM, Abdelkhalek Bakkari
> <bakkari.abdelkhalek@hotmail.fr> wrote:
> > Hi !
> > 
> > I applied the binary contour filter slice by slice to my binary mask. But
> > the result for the Axial plane is not satisfied at all since it contains
> > some outliers.
> > Please, find attached my binary contour result.
> > Is there any method to remove the outliers from the contour ?
> > 
> > Thank you in advance.
> > 
> > The ITK community is transitioning from this mailing list to
> > discourse.itk.org. Please join us there!
> > ________________________________
> > Powered by https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&data \
> > =01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d562af538f%7C22340 \
> > fa892264871b677d3b3e377af72%7C0&sdata=wGgpmJ1V9kHLAeehfcg2TDwAl2%2B146KjXnNcJwxCUUE%3D&reserved=0
> >  
> > Visit other Kitware open-source projects at
> > https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2F \
> > opensource%2Fopensource.html&data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42b \
> > d4f52460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&sdata=NV76hUF0Y4voqN%2BMyiz9V5VES8ByVlx6u8soSOw%2FUG0%3D&reserved=0
> >  
> > Kitware offers ITK Training Courses, for more information visit:
> > https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2F \
> > products%2Fprotraining.php&data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4 \
> > f52460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&sdata=3ZE7IOXhdYDA7yn8FEmJBbbqsRS22LsDgcLGsCOpMXI%3D&reserved=0
> >  
> > Please keep messages on-topic and check the ITK FAQ at:
> > https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.itk.org%2FWiki \
> > %2FITK_FAQ&data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d56 \
> > 2af538f%7C22340fa892264871b677d3b3e377af72%7C0&sdata=zmDoewconF3K2V%2FHEljYWpZjjkqEM3zMgZomfc5XR6A%3D&reserved=0
> >  
> > Follow this link to subscribe/unsubscribe:
> > https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fitk.org%2Fmailman \
> > %2Flistinfo%2Finsight-users&data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd \
> > 4f52460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&sdata=PBR%2BffFfgYSx2PuXw7dHbVf11DqJ9i%2BW%2Fd1GB2qzq40%3D&reserved=0
> >  
> The ITK community is transitioning from this mailing list to discourse.itk.org. \
> Please join us there! ________________________________
> Powered by https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&data=0 \
> 1%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d562af538f%7C22340fa89 \
> 2264871b677d3b3e377af72%7C0&sdata=wGgpmJ1V9kHLAeehfcg2TDwAl2%2B146KjXnNcJwxCUUE%3D&reserved=0
>  
> Visit other Kitware open-source projects at
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fop \
> ensource%2Fopensource.html&data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f5 \
> 2460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&sdata=NV76hUF0Y4voqN%2BMyiz9V5VES8ByVlx6u8soSOw%2FUG0%3D&reserved=0
>  
> Kitware offers ITK Training Courses, for more information visit:
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fpr \
> oducts%2Fprotraining.php&data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f524 \
> 60a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&sdata=3ZE7IOXhdYDA7yn8FEmJBbbqsRS22LsDgcLGsCOpMXI%3D&reserved=0
>  
> Please keep messages on-topic and check the ITK FAQ at:
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.itk.org%2FWiki%2 \
> FITK_FAQ&data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d562af5 \
> 38f%7C22340fa892264871b677d3b3e377af72%7C0&sdata=zmDoewconF3K2V%2FHEljYWpZjjkqEM3zMgZomfc5XR6A%3D&reserved=0
>  
> Follow this link to subscribe/unsubscribe:
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fitk.org%2Fmailman%2 \
> Flistinfo%2Finsight-users&data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52 \
> 460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&sdata=PBR%2BffFfgYSx2PuXw7dHbVf11DqJ9i%2BW%2Fd1GB2qzq40%3D&reserved=0
>  
> 
> 
> ________________________________
> 
> Email Disclaimer: https://na01.safelinks.protection.outlook.com/?url=www.stjude.org% \
> 2Femaildisclaimer&data=01%7C01%7CJared.Becksfort%40stjude.org%7C2070d2bf4b7944b95bb3 \
> 08d564937a1b%7C22340fa892264871b677d3b3e377af72%7C0&sdata=4Id6vNsMKmFkssxg1f%2F%2BVxhF4QMoRYlPx4SzRfNxH6o%3D&reserved=0
>  Consultation Disclaimer: \
> https://na01.safelinks.protection.outlook.com/?url=www.stjude.org%2Fconsultationdisc \
> laimer&data=01%7C01%7CJared.Becksfort%40stjude.org%7C2070d2bf4b7944b95bb308d564937a1 \
> b%7C22340fa892264871b677d3b3e377af72%7C0&sdata=8cUCE4yCncK6AQk9GCFmtMlVwrZYOPrpch%2FHH0Ukhts%3D&reserved=0
>  The ITK community is transitioning from this mailing list to discourse.itk.org. \
> Please join us there! ________________________________
> Powered by https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&data=0 \
> 1%7C01%7CJared.Becksfort%40stjude.org%7C2070d2bf4b7944b95bb308d564937a1b%7C22340fa89 \
> 2264871b677d3b3e377af72%7C0&sdata=yvhYZsACHrqPH8TCuJR6cvvIebX%2BAy2tZimD2D1mlfI%3D&reserved=0
>  
> Visit other Kitware open-source projects at
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fop \
> ensource%2Fopensource.html&data=01%7C01%7CJared.Becksfort%40stjude.org%7C2070d2bf4b7 \
> 944b95bb308d564937a1b%7C22340fa892264871b677d3b3e377af72%7C0&sdata=fvgazDqOOgDuIsS9dW%2F0b6m%2F0wQnmoCfg9ZdA3fI8OA%3D&reserved=0
>  
> Kitware offers ITK Training Courses, for more information visit:
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fpr \
> oducts%2Fprotraining.php&data=01%7C01%7CJared.Becksfort%40stjude.org%7C2070d2bf4b794 \
> 4b95bb308d564937a1b%7C22340fa892264871b677d3b3e377af72%7C0&sdata=VbzvGi96UoRD%2Fg9W97KzXUL9eBbi4M7psSj5EFUvA9c%3D&reserved=0
>  
> Please keep messages on-topic and check the ITK FAQ at:
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.itk.org%2FWiki%2 \
> FITK_FAQ&data=01%7C01%7CJared.Becksfort%40stjude.org%7C2070d2bf4b7944b95bb308d564937 \
> a1b%7C22340fa892264871b677d3b3e377af72%7C0&sdata=D%2FmtapoFXbMzmkB6NffisrNQEZ9Te3tqobv1kzx3I6Q%3D&reserved=0
>  
> Follow this link to subscribe/unsubscribe:
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fitk.org%2Fmailman%2 \
> Flistinfo%2Finsight-users&data=01%7C01%7CJared.Becksfort%40stjude.org%7C2070d2bf4b79 \
> 44b95bb308d564937a1b%7C22340fa892264871b677d3b3e377af72%7C0&sdata=%2FxQDcVnEX3RIGbxcMYyzPg3Zz8m%2BERoDnjbfOFc85Vs%3D&reserved=0
> 

________________________________

Email Disclaimer: www.stjude.org/emaildisclaimer
Consultation Disclaimer: www.stjude.org/consultationdisclaimer


[Attachment #3 (text/html)]

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} \
--></style> </head>
<body dir="ltr">
<div id="divtagdefaultwrapper" \
style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" \
dir="ltr"> <p style="margin-top:0;margin-bottom:0">Yes, sorry.&nbsp; I sent another \
email with the proper format shortly thereafter.&nbsp; Sorry for the noise.</p> <p \
style="margin-top:0;margin-bottom:0"><br> </p>
<p style="margin-top:0;margin-bottom:0">Jared</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" \
style="font-size:11pt" color="#000000"><b>From:</b> Jon Haitz Legarreta \
&lt;jhlegarreta@vicomtech.org&gt;<br> <b>Sent:</b> Friday, January 26, 2018 2:04:09 \
AM<br> <b>To:</b> Becksfort, Jared<br>
<b>Cc:</b> ITK Users<br>
<b>Subject:</b> Re: [ITK-users] Binary Contour with outliers</font>
<div>&nbsp;</div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Dear Jared,<br>
thanks for your question !<br>
<br>
Your question seems to drift apart from the one that started this<br>
thread or the subject of this thread.<br>
<br>
In order to increase the chances of it getting answered, could please<br>
post your question on a different thread?<br>
<br>
Please, read our community discussion guidelines, especially the &quot;Keep<br>
tidy&quot; section:<br>
<a href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdiscourse.it \
k.org%2Fguidelines&amp;data=01%7C01%7CJared.Becksfort%40stjude.org%7C2070d2bf4b7944b95 \
bb308d564937a1b%7C22340fa892264871b677d3b3e377af72%7C0&amp;sdata=xPacI3N%2B2bxM6VjGt5o \
%2Be7JQjrd7fAtQS12nDxDmdWk%3D&amp;reserved=0">https://na01.safelinks.protection.outloo \
k.com/?url=https%3A%2F%2Fdiscourse.itk.org%2Fguidelines&amp;data=01%7C01%7CJared.Becks \
fort%40stjude.org%7C2070d2bf4b7944b95bb308d564937a1b%7C22340fa892264871b677d3b3e377af7 \
2%7C0&amp;sdata=xPacI3N%2B2bxM6VjGt5o%2Be7JQjrd7fAtQS12nDxDmdWk%3D&amp;reserved=0</a><br>
 <br>
Also, providing a minimal, compilable code snippet (either through a<br>
GitHub gist) or by attaching your own files reproducing the issue<br>
(.cxx files, CMakeLists.txt, your own input data, etc.) would help.<br>
<br>
Note that we are transitioning from this mailing list to discourse:<br>
<a href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdiscourse.it \
k.org&amp;data=01%7C01%7CJared.Becksfort%40stjude.org%7C2070d2bf4b7944b95bb308d564937a \
1b%7C22340fa892264871b677d3b3e377af72%7C0&amp;sdata=Ml2KzsOGytZ5ylV9khEWD0rs3QA89TRY2W \
8IWdCO8tw%3D&amp;reserved=0">https://na01.safelinks.protection.outlook.com/?url=https% \
3A%2F%2Fdiscourse.itk.org&amp;data=01%7C01%7CJared.Becksfort%40stjude.org%7C2070d2bf4b \
7944b95bb308d564937a1b%7C22340fa892264871b677d3b3e377af72%7C0&amp;sdata=Ml2KzsOGytZ5ylV9khEWD0rs3QA89TRY2W8IWdCO8tw%3D&amp;reserved=0</a><br>
 <br>
So we'd be grateful if you could post your question there taking into<br>
account the above.<br>
<br>
Cheers,<br>
JON HAITZ<br>
<br>
--<br>
<br>
<br>
<br>
On 26 January 2018 at 00:56, Becksfort, Jared<br>
&lt;Jared.Becksfort@stjude.org&gt; wrote:<br>
&gt; Hello,<br>
&gt;<br>
&gt; I am having some difficulty overlaying boolean masks onto Nifti images. The code \
below is basically what is shown here (which does work for me when I use the images \
on the page):. <a href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F \
%2Fitk.org%2FITKExamples%2Fsrc%2FFiltering%2FImageFusion%2FOverlayLabelMapOnTopOfAnIma \
ge%2FDocumentation.html&amp;data=01%7C01%7CJared.Becksfort%40stjude.org%7C2070d2bf4b79 \
44b95bb308d564937a1b%7C22340fa892264871b677d3b3e377af72%7C0&amp;sdata=j7IB4JaPUdTP%2BnMM4ez7Hb4aiuOQ%2Fk41WI2RCh%2FvQJA%3D&amp;reserved=0">
 https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fitk.org%2FITKExample \
s%2Fsrc%2FFiltering%2FImageFusion%2FOverlayLabelMapOnTopOfAnImage%2FDocumentation.html \
&amp;data=01%7C01%7CJared.Becksfort%40stjude.org%7C2070d2bf4b7944b95bb308d564937a1b%7C \
22340fa892264871b677d3b3e377af72%7C0&amp;sdata=j7IB4JaPUdTP%2BnMM4ez7Hb4aiuOQ%2Fk41WI2RCh%2FvQJA%3D&amp;reserved=0</a><br>
 &gt;<br>
&gt; The differences that I can see are that I am using 3 dimensions and Nifti float \
input rather than 2D images of the same pixel and file types (8-bit PNG) in the \
example.<br> &gt;<br>
&gt; Can someone please tell me what I have done wrong?&nbsp; The output image is \
garbled beyond recognition.<br> &gt;<br>
&gt; Thanks,<br>
&gt; Jared<br>
&gt;<br>
&gt; const unsigned int Dimension = 3;<br>
&gt;<br>
&gt; typedef float PixelType;<br>
&gt; typedef unsigned char LabelType;<br>
&gt;<br>
&gt; typedef itk::Image&lt; PixelType, Dimension &gt; ImageVolumeType;<br>
&gt; typedef itk::Image&lt; LabelType, Dimension &gt; ContourVolumeType;<br>
&gt;<br>
&gt; typedef itk::ImageFileReader&lt;ContourVolumeType&gt; ContourReaderType;<br>
&gt; typedef itk::ImageFileReader&lt; ImageVolumeType &gt;&nbsp; ReaderType;<br>
&gt;<br>
&gt; ReaderType::Pointer reader = ReaderType::New();<br>
&gt; reader-&gt;SetFileName( infile1 );<br>
&gt;<br>
&gt; ContourReaderType::Pointer labelReader = ContourReaderType::New();<br>
&gt; labelReader-&gt;SetFileName(infile2);<br>
&gt;<br>
&gt; typedef itk::LabelObject&lt; LabelType, Dimension &gt; LabelObjectType;<br>
&gt; typedef itk::LabelMap&lt; LabelObjectType &gt; LabelMapType;<br>
&gt;<br>
&gt; typedef itk::LabelImageToLabelMapFilter&lt; ContourVolumeType, LabelMapType &gt; \
ConverterType;<br> &gt; ConverterType::Pointer converter = ConverterType::New();<br>
&gt; converter-&gt;SetInput( labelReader-&gt;GetOutput() );<br>
&gt;<br>
&gt; typedef itk::LabelMapOverlayImageFilter&lt; LabelMapType, ImageVolumeType &gt; \
FilterType;<br> &gt; FilterType::Pointer filter = FilterType::New();<br>
&gt; filter-&gt;SetInput( converter-&gt;GetOutput() );<br>
&gt; filter-&gt;SetFeatureImage( reader-&gt;GetOutput() );<br>
&gt; filter-&gt;SetOpacity(0.5);<br>
&gt;<br>
&gt;<br>
&gt; typedef itk::ImageFileWriter&lt; FilterType::OutputImageType &gt; \
WriterType;<br> &gt; WriterType::Pointer writer = WriterType::New();<br>
&gt; writer-&gt;SetFileName(outfile);<br>
&gt; writer-&gt;SetInput( filter-&gt;GetOutput() );<br>
&gt; writer-&gt;Update();<br>
&gt;<br>
&gt; On 1/23/18, 4:19 PM, &quot;Insight-users on behalf of Matt McCormick&quot; \
&lt;insight-users-bounces@itk.org on behalf of matt.mccormick@kitware.com&gt; \
wrote:<br> &gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; Hi,<br>
&gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; By running OpeningByReconstructionImageFilter:<br>
&gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a \
href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fitk.org%2FDoxyg \
en%2Fhtml%2Fclassitk_1_1OpeningByReconstructionImageFilter.html&amp;data=01%7C01%7Cjar \
ed.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d562af538f%7C22340fa892264871b677d3b \
3e377af72%7C0&amp;sdata=qbR%2BtUIsnrSfh01yNV9w94GGa%2FdEA7uXrisa%2BpVyJ0k%3D&amp;reserved=0">
 https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fitk.org%2FDoxygen%2F \
html%2Fclassitk_1_1OpeningByReconstructionImageFilter.html&amp;data=01%7C01%7Cjared.be \
cksfort%40stjude.org%7Ce86b42bd4f52460a362708d562af538f%7C22340fa892264871b677d3b3e377 \
af72%7C0&amp;sdata=qbR%2BtUIsnrSfh01yNV9w94GGa%2FdEA7uXrisa%2BpVyJ0k%3D&amp;reserved=0</a><br>
 &gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; before the binary contour, the smaller objects can be \
removed.<br> &gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; HTH,<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; Matt<br>
&gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; On Tue, Jan 23, 2018 at 5:06 PM, Abdelkhalek Bakkari<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;bakkari.abdelkhalek@hotmail.fr&gt; wrote:<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Hi !<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; I applied the binary contour filter slice by slice \
to my binary mask. But<br> &gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; the result for the Axial \
plane is not satisfied at all since it contains<br> &gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; \
some outliers.<br> &gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Please, find attached my binary \
contour result.<br> &gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Is there any method to remove \
the outliers from the contour ?<br> &gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Thank you in advance.<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; The ITK community is transitioning from this \
mailing list to<br> &gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; discourse.itk.org. Please join \
us there!<br> &gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; ________________________________<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Powered by <a \
href="https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&amp;data=01%7 \
C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d562af538f%7C22340fa8922648 \
71b677d3b3e377af72%7C0&amp;sdata=wGgpmJ1V9kHLAeehfcg2TDwAl2%2B146KjXnNcJwxCUUE%3D&amp;reserved=0">
 https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&amp;data=01%7C01%7 \
Cjared.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d562af538f%7C22340fa892264871b67 \
7d3b3e377af72%7C0&amp;sdata=wGgpmJ1V9kHLAeehfcg2TDwAl2%2B146KjXnNcJwxCUUE%3D&amp;reserved=0</a><br>
 &gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Visit other Kitware open-source projects at<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; <a \
href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com% \
2Fopensource%2Fopensource.html&amp;data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b4 \
2bd4f52460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&amp;sdata=NV76hUF0Y4voqN%2BMyiz9V5VES8ByVlx6u8soSOw%2FUG0%3D&amp;reserved=0">
 https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fope \
nsource%2Fopensource.html&amp;data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f \
52460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&amp;sdata=NV76hUF0Y4voqN%2BMyiz9V5VES8ByVlx6u8soSOw%2FUG0%3D&amp;reserved=0</a><br>
 &gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Kitware offers ITK Training Courses, for more \
information visit:<br> &gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; <a \
href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com% \
2Fproducts%2Fprotraining.php&amp;data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42b \
d4f52460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&amp;sdata=3ZE7IOXhdYDA7yn8FEmJBbbqsRS22LsDgcLGsCOpMXI%3D&amp;reserved=0">
 https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fpro \
ducts%2Fprotraining.php&amp;data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52 \
460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&amp;sdata=3ZE7IOXhdYDA7yn8FEmJBbbqsRS22LsDgcLGsCOpMXI%3D&amp;reserved=0</a><br>
 &gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Please keep messages on-topic and check the ITK FAQ \
at:<br> &gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; <a \
href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.itk.org%2FWi \
ki%2FITK_FAQ&amp;data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d \
562af538f%7C22340fa892264871b677d3b3e377af72%7C0&amp;sdata=zmDoewconF3K2V%2FHEljYWpZjjkqEM3zMgZomfc5XR6A%3D&amp;reserved=0">
 https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.itk.org%2FWiki%2F \
ITK_FAQ&amp;data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d562af \
538f%7C22340fa892264871b677d3b3e377af72%7C0&amp;sdata=zmDoewconF3K2V%2FHEljYWpZjjkqEM3zMgZomfc5XR6A%3D&amp;reserved=0</a><br>
 &gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; <a \
href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fitk.org%2Fmailm \
an%2Flistinfo%2Finsight-users&amp;data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42 \
bd4f52460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&amp;sdata=PBR%2BffFfgYSx2PuXw7dHbVf11DqJ9i%2BW%2Fd1GB2qzq40%3D&amp;reserved=0">
 https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fitk.org%2Fmailman%2F \
listinfo%2Finsight-users&amp;data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f5 \
2460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&amp;sdata=PBR%2BffFfgYSx2PuXw7dHbVf11DqJ9i%2BW%2Fd1GB2qzq40%3D&amp;reserved=0</a><br>
 &gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; The ITK community is transitioning from this mailing \
list to discourse.itk.org. Please join us there!<br> &gt;&nbsp;&nbsp;&nbsp;&nbsp; \
________________________________<br> &gt;&nbsp;&nbsp;&nbsp;&nbsp; Powered by <a \
href="https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&amp;data=01%7 \
C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d562af538f%7C22340fa8922648 \
71b677d3b3e377af72%7C0&amp;sdata=wGgpmJ1V9kHLAeehfcg2TDwAl2%2B146KjXnNcJwxCUUE%3D&amp;reserved=0">
 https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&amp;data=01%7C01%7 \
Cjared.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d562af538f%7C22340fa892264871b67 \
7d3b3e377af72%7C0&amp;sdata=wGgpmJ1V9kHLAeehfcg2TDwAl2%2B146KjXnNcJwxCUUE%3D&amp;reserved=0</a><br>
 &gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; Visit other Kitware open-source projects at<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; <a \
href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com% \
2Fopensource%2Fopensource.html&amp;data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b4 \
2bd4f52460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&amp;sdata=NV76hUF0Y4voqN%2BMyiz9V5VES8ByVlx6u8soSOw%2FUG0%3D&amp;reserved=0">
 https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fope \
nsource%2Fopensource.html&amp;data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f \
52460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&amp;sdata=NV76hUF0Y4voqN%2BMyiz9V5VES8ByVlx6u8soSOw%2FUG0%3D&amp;reserved=0</a><br>
 &gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; Kitware offers ITK Training Courses, for more \
information visit:<br> &gt;&nbsp;&nbsp;&nbsp;&nbsp; <a \
href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com% \
2Fproducts%2Fprotraining.php&amp;data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42b \
d4f52460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&amp;sdata=3ZE7IOXhdYDA7yn8FEmJBbbqsRS22LsDgcLGsCOpMXI%3D&amp;reserved=0">
 https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fpro \
ducts%2Fprotraining.php&amp;data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52 \
460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&amp;sdata=3ZE7IOXhdYDA7yn8FEmJBbbqsRS22LsDgcLGsCOpMXI%3D&amp;reserved=0</a><br>
 &gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; Please keep messages on-topic and check the ITK FAQ \
at:<br> &gt;&nbsp;&nbsp;&nbsp;&nbsp; <a \
href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.itk.org%2FWi \
ki%2FITK_FAQ&amp;data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d \
562af538f%7C22340fa892264871b677d3b3e377af72%7C0&amp;sdata=zmDoewconF3K2V%2FHEljYWpZjjkqEM3zMgZomfc5XR6A%3D&amp;reserved=0">
 https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.itk.org%2FWiki%2F \
ITK_FAQ&amp;data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f52460a362708d562af \
538f%7C22340fa892264871b677d3b3e377af72%7C0&amp;sdata=zmDoewconF3K2V%2FHEljYWpZjjkqEM3zMgZomfc5XR6A%3D&amp;reserved=0</a><br>
 &gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; Follow this link to subscribe/unsubscribe:<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; <a \
href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fitk.org%2Fmailm \
an%2Flistinfo%2Finsight-users&amp;data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42 \
bd4f52460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&amp;sdata=PBR%2BffFfgYSx2PuXw7dHbVf11DqJ9i%2BW%2Fd1GB2qzq40%3D&amp;reserved=0">
 https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fitk.org%2Fmailman%2F \
listinfo%2Finsight-users&amp;data=01%7C01%7Cjared.becksfort%40stjude.org%7Ce86b42bd4f5 \
2460a362708d562af538f%7C22340fa892264871b677d3b3e377af72%7C0&amp;sdata=PBR%2BffFfgYSx2PuXw7dHbVf11DqJ9i%2BW%2Fd1GB2qzq40%3D&amp;reserved=0</a><br>
 &gt;<br>
&gt;<br>
&gt;<br>
&gt; ________________________________<br>
&gt;<br>
&gt; Email Disclaimer: <a \
href="https://na01.safelinks.protection.outlook.com/?url=www.stjude.org%2Femaildisclai \
mer&amp;data=01%7C01%7CJared.Becksfort%40stjude.org%7C2070d2bf4b7944b95bb308d564937a1b \
%7C22340fa892264871b677d3b3e377af72%7C0&amp;sdata=4Id6vNsMKmFkssxg1f%2F%2BVxhF4QMoRYlPx4SzRfNxH6o%3D&amp;reserved=0">
 https://na01.safelinks.protection.outlook.com/?url=www.stjude.org%2Femaildisclaimer&a \
mp;data=01%7C01%7CJared.Becksfort%40stjude.org%7C2070d2bf4b7944b95bb308d564937a1b%7C22 \
340fa892264871b677d3b3e377af72%7C0&amp;sdata=4Id6vNsMKmFkssxg1f%2F%2BVxhF4QMoRYlPx4SzRfNxH6o%3D&amp;reserved=0</a><br>
 &gt; Consultation Disclaimer: <a \
href="https://na01.safelinks.protection.outlook.com/?url=www.stjude.org%2Fconsultation \
disclaimer&amp;data=01%7C01%7CJared.Becksfort%40stjude.org%7C2070d2bf4b7944b95bb308d56 \
4937a1b%7C22340fa892264871b677d3b3e377af72%7C0&amp;sdata=8cUCE4yCncK6AQk9GCFmtMlVwrZYOPrpch%2FHH0Ukhts%3D&amp;reserved=0">
 https://na01.safelinks.protection.outlook.com/?url=www.stjude.org%2Fconsultationdiscl \
aimer&amp;data=01%7C01%7CJared.Becksfort%40stjude.org%7C2070d2bf4b7944b95bb308d564937a \
1b%7C22340fa892264871b677d3b3e377af72%7C0&amp;sdata=8cUCE4yCncK6AQk9GCFmtMlVwrZYOPrpch%2FHH0Ukhts%3D&amp;reserved=0</a><br>
 &gt; The ITK community is transitioning from this mailing list to discourse.itk.org. \
Please join us there!<br> &gt; ________________________________<br>
&gt; Powered by <a href="https://na01.safelinks.protection.outlook.com/?url=www.kitwar \
e.com&amp;data=01%7C01%7CJared.Becksfort%40stjude.org%7C2070d2bf4b7944b95bb308d564937a \
1b%7C22340fa892264871b677d3b3e377af72%7C0&amp;sdata=yvhYZsACHrqPH8TCuJR6cvvIebX%2BAy2tZimD2D1mlfI%3D&amp;reserved=0">
 https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&amp;data=01%7C01%7 \
CJared.Becksfort%40stjude.org%7C2070d2bf4b7944b95bb308d564937a1b%7C22340fa892264871b67 \
7d3b3e377af72%7C0&amp;sdata=yvhYZsACHrqPH8TCuJR6cvvIebX%2BAy2tZimD2D1mlfI%3D&amp;reserved=0</a><br>
 &gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitw \
are.com%2Fopensource%2Fopensource.html&amp;data=01%7C01%7CJared.Becksfort%40stjude.org \
%7C2070d2bf4b7944b95bb308d564937a1b%7C22340fa892264871b677d3b3e377af72%7C0&amp;sdata=fvgazDqOOgDuIsS9dW%2F0b6m%2F0wQnmoCfg9ZdA3fI8OA%3D&amp;reserved=0">
 https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fope \
nsource%2Fopensource.html&amp;data=01%7C01%7CJared.Becksfort%40stjude.org%7C2070d2bf4b \
7944b95bb308d564937a1b%7C22340fa892264871b677d3b3e377af72%7C0&amp;sdata=fvgazDqOOgDuIsS9dW%2F0b6m%2F0wQnmoCfg9ZdA3fI8OA%3D&amp;reserved=0</a><br>
 &gt;<br>
&gt; Kitware offers ITK Training Courses, for more information visit:<br>
&gt; <a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitw \
are.com%2Fproducts%2Fprotraining.php&amp;data=01%7C01%7CJared.Becksfort%40stjude.org%7 \
C2070d2bf4b7944b95bb308d564937a1b%7C22340fa892264871b677d3b3e377af72%7C0&amp;sdata=VbzvGi96UoRD%2Fg9W97KzXUL9eBbi4M7psSj5EFUvA9c%3D&amp;reserved=0">
 https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fpro \
ducts%2Fprotraining.php&amp;data=01%7C01%7CJared.Becksfort%40stjude.org%7C2070d2bf4b79 \
44b95bb308d564937a1b%7C22340fa892264871b677d3b3e377af72%7C0&amp;sdata=VbzvGi96UoRD%2Fg9W97KzXUL9eBbi4M7psSj5EFUvA9c%3D&amp;reserved=0</a><br>
 &gt;<br>
&gt; Please keep messages on-topic and check the ITK FAQ at:<br>
&gt; <a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.itk. \
org%2FWiki%2FITK_FAQ&amp;data=01%7C01%7CJared.Becksfort%40stjude.org%7C2070d2bf4b7944b \
95bb308d564937a1b%7C22340fa892264871b677d3b3e377af72%7C0&amp;sdata=D%2FmtapoFXbMzmkB6NffisrNQEZ9Te3tqobv1kzx3I6Q%3D&amp;reserved=0">
 https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.itk.org%2FWiki%2F \
ITK_FAQ&amp;data=01%7C01%7CJared.Becksfort%40stjude.org%7C2070d2bf4b7944b95bb308d56493 \
7a1b%7C22340fa892264871b677d3b3e377af72%7C0&amp;sdata=D%2FmtapoFXbMzmkB6NffisrNQEZ9Te3tqobv1kzx3I6Q%3D&amp;reserved=0</a><br>
 &gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fitk.org \
%2Fmailman%2Flistinfo%2Finsight-users&amp;data=01%7C01%7CJared.Becksfort%40stjude.org% \
7C2070d2bf4b7944b95bb308d564937a1b%7C22340fa892264871b677d3b3e377af72%7C0&amp;sdata=%2FxQDcVnEX3RIGbxcMYyzPg3Zz8m%2BERoDnjbfOFc85Vs%3D&amp;reserved=0">
 https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fitk.org%2Fmailman%2F \
listinfo%2Finsight-users&amp;data=01%7C01%7CJared.Becksfort%40stjude.org%7C2070d2bf4b7 \
944b95bb308d564937a1b%7C22340fa892264871b677d3b3e377af72%7C0&amp;sdata=%2FxQDcVnEX3RIGbxcMYyzPg3Zz8m%2BERoDnjbfOFc85Vs%3D&amp;reserved=0</a><br>
 </div>
</span></font></div>
<br>
<hr>
<font face="Arial" color="Gray" size="2"><br>
Email Disclaimer: www.stjude.org/emaildisclaimer<br>
Consultation Disclaimer: www.stjude.org/consultationdisclaimer<br>
</font>
</body>
</html>



The ITK community is transitioning from this mailing list to discourse.itk.org. Please join us there!
________________________________
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:
https://itk.org/mailman/listinfo/insight-users

--===============2058456852==--

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic