<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi,<div><br></div><div>&nbsp;Yes i already tried that and in the by default the Attribute value is "Size", which as far as i understood is the Perimeter of the shape that has a specific label (length-coding)-don't know how that applies to 3D images, but trying to apply the itkBinaryShapeOpeningImageFilter i get the following error (my input image is a float one).</div><div><p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>Start BinaryShapeOpeningImageFilter "filter" BinaryShapeOpeningImageFilter (0x402d160)</b></p>
<p style="margin: 0.0px 0.0px 0.0px 42.0px; text-indent: -42.0px; font: 11.0px Menlo"><b>&nbsp; RTTI typeinfo: &nbsp; itk::BinaryShapeOpeningImageFilter&lt;itk::Image&lt;float, 3u&gt; &gt;</b></p>
<p style="margin: 0.0px 0.0px 0.0px 42.0px; text-indent: -42.0px; font: 11.0px Menlo"><b>&nbsp; Reference Count: 3</b></p>
<p style="margin: 0.0px 0.0px 0.0px 42.0px; text-indent: -42.0px; font: 11.0px Menlo"><b>&nbsp; Modified Time: 1082</b></p>
<p style="margin: 0.0px 0.0px 0.0px 42.0px; text-indent: -42.0px; font: 11.0px Menlo"><b>&nbsp; Debug: Off</b></p>
<p style="margin: 0.0px 0.0px 0.0px 42.0px; text-indent: -42.0px; font: 11.0px Menlo"><b>&nbsp; Observers:&nbsp;</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; StartEvent(SimpleMemberCommand)</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; EndEvent(SimpleMemberCommand)</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; ProgressEvent(SimpleMemberCommand)</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; IterationEvent(SimpleMemberCommand)</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; AbortEvent(SimpleMemberCommand)</b></p>
<p style="margin: 0.0px 0.0px 0.0px 42.0px; text-indent: -42.0px; font: 11.0px Menlo"><b>&nbsp; Number Of Required Inputs: 1</b></p>
<p style="margin: 0.0px 0.0px 0.0px 42.0px; text-indent: -42.0px; font: 11.0px Menlo"><b>&nbsp; Number Of Required Outputs: 1</b></p>
<p style="margin: 0.0px 0.0px 0.0px 42.0px; text-indent: -42.0px; font: 11.0px Menlo"><b>&nbsp; Number Of Threads: 8</b></p>
<p style="margin: 0.0px 0.0px 0.0px 42.0px; text-indent: -42.0px; font: 11.0px Menlo"><b>&nbsp; ReleaseDataFlag: Off</b></p>
<p style="margin: 0.0px 0.0px 0.0px 42.0px; text-indent: -42.0px; font: 11.0px Menlo"><b>&nbsp; ReleaseDataBeforeUpdateFlag: Off</b></p>
<p style="margin: 0.0px 0.0px 0.0px 42.0px; text-indent: -42.0px; font: 11.0px Menlo"><b>&nbsp; Input 0: (0x402cde0)</b></p>
<p style="margin: 0.0px 0.0px 0.0px 42.0px; text-indent: -42.0px; font: 11.0px Menlo"><b>&nbsp; Output 0: (0x402d380)</b></p>
<p style="margin: 0.0px 0.0px 0.0px 42.0px; text-indent: -42.0px; font: 11.0px Menlo"><b>&nbsp; AbortGenerateData: Off</b></p>
<p style="margin: 0.0px 0.0px 0.0px 42.0px; text-indent: -42.0px; font: 11.0px Menlo"><b>&nbsp; Progress: 0</b></p>
<p style="margin: 0.0px 0.0px 0.0px 42.0px; text-indent: -42.0px; font: 11.0px Menlo"><b>&nbsp; Multithreader:&nbsp;</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; RTTI typeinfo: &nbsp; itk::MultiThreader</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; Reference Count: 1</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; Modified Time: 1069</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; Debug: Off</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; Observers:&nbsp;</b></p>
<p style="margin: 0.0px 0.0px 0.0px 70.0px; text-indent: -70.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; &nbsp; none</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; Thread Count: 8</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; Global Maximum Number Of Threads: 128</b></p>
<p style="margin: 0.0px 0.0px 0.0px 56.0px; text-indent: -56.0px; font: 11.0px Menlo"><b>&nbsp; &nbsp; Global Default Number Of Threads: 8</b></p>
<p style="margin: 0.0px 0.0px 0.0px 42.0px; text-indent: -42.0px; font: 11.0px Menlo"><b>&nbsp; FullyConnected: 0</b></p>
<p style="margin: 0.0px 0.0px 0.0px 42.0px; text-indent: -42.0px; font: 11.0px Menlo"><b>&nbsp; BackgroundValue: 0</b></p>
<p style="margin: 0.0px 0.0px 0.0px 42.0px; text-indent: -42.0px; font: 11.0px Menlo"><b>&nbsp; ForegroundValue: 255</b></p>
<p style="margin: 0.0px 0.0px 0.0px 42.0px; text-indent: -42.0px; font: 11.0px Menlo"><b>&nbsp; Lambda: 500</b></p>
<p style="margin: 0.0px 0.0px 0.0px 42.0px; text-indent: -42.0px; font: 11.0px Menlo"><b>&nbsp; ReverseOrdering: 0</b></p>
<p style="margin: 0.0px 0.0px 0.0px 42.0px; text-indent: -42.0px; font: 11.0px Menlo"><b>&nbsp; Attribute: Size (0)</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>Progress&nbsp; | 0 | 0.00292969 | 0.00585938 | 0.00878906 | 0.0117188 | 0.0146484 | 0.0175781 | 0.0205078 | 0.0234375 | 0.0263672</b></p>
<p style="margin: 0.0px 0.0px 0.0px 35.0px; text-indent: -35.0px; font: 11.0px Menlo"><b>&nbsp;| 0.0292969 | 0.0322266 | 0.0351562 | 0.0380859 | 0.0410156 | 0.0439453 | 0.046875 | 0.0498047 | 0.0527344 | 0.0556641</b></p>
<p style="margin: 0.0px 0.0px 0.0px 35.0px; text-indent: -35.0px; font: 11.0px Menlo"><b>&nbsp;| 0.0585938 | 0.0615234 | 0.0644531 | 0.0673828 | 0.0703125 | 0.0732422 | 0.0761719 | 0.0791016 | 0.0820312 | 0.0849609</b></p>
<p style="margin: 0.0px 0.0px 0.0px 35.0px; text-indent: -35.0px; font: 11.0px Menlo"><b>&nbsp;| 0.0878906 | 0.0908203 | 0.09375 | 0.0966797 | 0.0996094 | 0.102539 | 0.105469 | 0.108398 | 0.111328 | 0.114258</b></p>
<p style="margin: 0.0px 0.0px 0.0px 35.0px; text-indent: -35.0px; font: 11.0px Menlo"><b>&nbsp;| 0.117188 | 0.120117 | 0.123047 | 0.125977 | 0.128906 | 0.131836 | 0.134766 | 0.137695 | 0.140625 | 0.143555</b></p>
<p style="margin: 0.0px 0.0px 0.0px 35.0px; text-indent: -35.0px; font: 11.0px Menlo"><b>&nbsp;| 0.146484 | 0.149414 | 0.152344 | 0.155273 | 0.158203 | 0.161133 | 0.164062 | 0.166992 | 0.169922 | 0.172852</b></p>
<p style="margin: 0.0px 0.0px 0.0px 35.0px; text-indent: -35.0px; font: 11.0px Menlo"><b>&nbsp;| 0.175781 | 0.178711 | 0.181641 | 0.18457 | 0.1875 | 0.19043 | 0.193359 | 0.196289 | 0.199219 | 0.202148</b></p>
<p style="margin: 0.0px 0.0px 0.0px 35.0px; text-indent: -35.0px; font: 11.0px Menlo"><b>&nbsp;| 0.205078 | 0.208008 | 0.210938 | 0.213867 | 0.216797 | 0.219727 | 0.222656 | 0.225586 | 0.228516 | 0.231445</b></p>
<p style="margin: 0.0px 0.0px 0.0px 35.0px; text-indent: -35.0px; font: 11.0px Menlo"><b>&nbsp;| 0.234375 | 0.237305 | 0.240234 | 0.243164 | 0.246094 | 0.249023 | 0.251953 | 0.254883 | 0.257812 | 0.260742</b></p>
<p style="margin: 0.0px 0.0px 0.0px 35.0px; text-indent: -35.0px; font: 11.0px Menlo"><b>&nbsp;| 0.263672 | 0.266602 | 0.269531 | 0.272461 | 0.275391 | 0.27832 | 0.28125 | 0.28418 | 0.287109 | 0.290039</b></p>
<p style="margin: 0.0px 0.0px 0.0px 35.0px; text-indent: -35.0px; font: 11.0px Menlo"><b>&nbsp;| 0.292969 | 0.295898 | 0.298828Brain(6480,0xa0047540) malloc: *** mmap(size=4263636992) failed (error code=12)</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>*** error: can't allocate region</b></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo"><b>*** set a breakpoint in malloc_error_break to debug</b></p>
<p style="margin: 0.0px 0.0px 0.0px 35.0px; text-indent: -35.0px; font: 11.0px Menlo"><b>&nbsp;| 0.3</b></p><br>--- Richard Beare <i>&lt;richard.beare@gmail.com&gt;</i> schrieb am <b>Mi, 30.3.2011:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>Von: Richard Beare &lt;richard.beare@gmail.com&gt;<br>Betreff: Re: [Insight-users] LabelShapeOpeningImageFilter Attribute input<br>An: "Ella Maria Kadas" &lt;ella_kadas@yahoo.com&gt;<br>CC: "insight-users@itk.org" &lt;insight-users@itk.org&gt;<br>Datum: Mittwoch, 30. März, 2011 15:03 Uhr<br><br><div id="yiv487639506">There is a convenience class in the Review directory that is derived from this contribution called itk::BinaryShapeOpeningImageFilter. This includes all of the labelling and conversion to and from label maps. You just need to call the SetAttribute and SetForegroundValue appropriately. It should work fine for 3D. If you look inside that class
 you should also find the standard combination of steps you need to go through to use the LabelMap filters.<br>
<br><div class="yiv487639506gmail_quote">On Wed, Mar 30, 2011 at 9:09 PM, Ella Maria Kadas <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:ella_kadas@yahoo.com" target="_blank" href="/mc/compose?to=ella_kadas@yahoo.com">ella_kadas@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="yiv487639506gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit;">Hi all,<div><br></div><div>&nbsp;&nbsp; &nbsp;I am trying to remove some objects from a 3D image that have a volume lower then a specific value.</div>
<div>&nbsp;&nbsp; I tried to use the&nbsp;<span style="color:rgb(26, 26, 24);"><font face="'times new roman', 'new york', times, serif"><span style="font-size:small;">Label object representation and manipulation with ITK that&nbsp;</span></font></span><span style="font-family:Helvetica;font-size:small;color:rgb(26, 26, 24);">Gae ̈tan Lehmann</span></div>
<div><span style="font-family:Helvetica;font-size:small;color:rgb(26, 26, 24);">implemented but i still don't know what that attribute parameter should look like. (in the python example it looks a s it would be a
 char&nbsp;</span></div><div><span style="font-family:Helvetica;font-size:small;color:rgb(26, 26, 24);"></span><span style="font-family:Courier;color:rgb(26, 26, 24);"><span style="font-size:small;">size = itk.ShapeOpeningLabelMapFilter[LabelMapType].New(stats,Attribute=’Size’, Lambda=100</span></span><span style="font-family:Courier;font-size:9px;color:rgb(26, 26, 24);">)&nbsp;</span></div>
<div><span style="font-family:Helvetica;font-size:small;color:rgb(26, 26, 24);">&nbsp;I want to use the ShapeLabelObject, and it's attributes to do a LabelShapeOpeningFilter.</span></div><div><span style="font-family:Helvetica;font-size:small;color:rgb(26, 26, 24);">&nbsp;As i was getting no result i tried to do it in 2D first.</span></div>
<div><span style="font-family:Helvetica;font-size:small;color:rgb(26, 26, 24);">&nbsp;This is my code:</span></div><div><span style="font-family:Helvetica;font-size:small;color:rgb(26, 26, 24);">First i use the ConnectedComponentImageFilter, then RelabelComponentImageFilter and create a ShapeLabelMap from the relabel's output.</span></div>
<div><span style="font-family:Helvetica;font-size:small;color:rgb(26, 26, 24);"><br></span></div><div><span style="font-family:Helvetica;font-size:small;color:rgb(26, 26, 24);"><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;">
<font color="#000000">typedef unsigned long LabelType;</font></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;"><font color="#000000">&nbsp; typedef itk::ShapeLabelObject&lt; LabelType, dim &gt; LabelObjectType;</font></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;"><font color="#000000">&nbsp; typedef itk::LabelMap&lt; LabelObjectType &gt; LabelMapType;</font></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;min-height:13.0px;"><font color="#000000"><br></font></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;"><font color="#000000"><br></font></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;"><font color="#000000">&nbsp; typedef itk::LabelImageToShapeLabelMapFilter&lt; LabelImageType, LabelMapType &gt; ConverterType;</font></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;"><font color="#000000">&nbsp; ConverterType::Pointer converter = ConverterType::New();</font></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;"><font color="#000000">&nbsp; converter-&gt;SetInput( relabel-&gt;GetOutput() );</font></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;"><font color="#000000">&nbsp; converter-&gt;Update();</font></p><p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;"><span style="font-family:Helvetica;font-size:small;"></span></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;min-height:13px;">!!!! Why does it not work if i use this part of code from the journal<span style="white-space:pre-wrap;">        </span></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;min-height:13px;">
<span style="white-space:pre-wrap;">        </span>/*</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;min-height:13px;"></p><p style="margin:0.0px 0.0px 0.0px 0.0px;font:10.0px Times;color:#1a1a18;">a<span style="font-size:small;">nd valuate the attributes with the dedicated filter: ShapeLabelMapFilter</span></p>

<p style="margin:0.0px 0.0px 0.0px 0.0px;font:9.2px Courier;color:#1a1a18;"><span style="font-size:small;">typedef itk::ShapeLabelMapFilter&lt; LabelMapType &gt; ShapeFilterType; ShapeFilterType::Pointer shape = ShapeFilterType::New(); shape-&gt;SetInput( converter-&gt;GetOutput() );</span></p>

<p style="margin:0.0px 0.0px 0.0px 0.0px;font:10.0px Times;color:#1a1a18;"><span style="font-size:small;">update the shape filter, so its output will be up to date</span></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:9.2px Courier;color:#1a1a18;"><span style="font-size:small;">shape-&gt;Update();</span></p><p></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;min-height:13px;">
*/</p></span><p></p><p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;"><br></p><p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;">&nbsp;&nbsp;<font color="#000000">LabelMapType::Pointer labelMap = converter-&gt;GetOutput();</font></p>

<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;"><font color="#000000">std::cout&lt;&lt;"nr of label objects"&lt;&lt;labelMap-&gt;GetNumberOfLabelObjects()&lt;&lt;std::endl;</font></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;min-height:13.0px;"><font color="#000000"><br></font></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;"><font color="#000000">&nbsp; for( unsigned int label=1; label&lt;=labelMap-&gt;GetNumberOfLabelObjects(); label++ )</font></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;"><font color="#000000">&nbsp; &nbsp; {</font></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;"><font color="#000000">&nbsp; &nbsp;&nbsp;</font></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;"><font color="#000000">&nbsp; &nbsp; const LabelObjectType * labelObject = labelMap-&gt;GetLabelObject( label );</font></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;"><font color="#000000">&nbsp; &nbsp; std::cout &lt;&lt; label &lt;&lt; "\t" &lt;&lt; labelObject-&gt;GetPhysicalSize() &lt;&lt; "\t" &lt;&lt; labelObject-&gt;GetCentroid() &lt;&lt; std::endl;</font></p>

<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;"><font color="#000000">&nbsp; &nbsp; }</font></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;min-height:13.0px;"><font color="#000000"><br></font></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;"><span style="white-space:pre-wrap;"><font color="#000000">        </font></span><font color="#000000">typedef itk::LabelShapeOpeningImageFilter&lt; LabelImageType &gt; LabelOpeningType;</font></p>

<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;"><span style="white-space:pre-wrap;"><font color="#000000">        </font></span><font color="#000000">LabelOpeningType::Pointer opening = LabelOpeningType::New();</font></p>

<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;"><span style="white-space:pre-wrap;"><font color="#000000">        </font></span><font color="#000000">opening-&gt;SetInput( relabel-&gt;GetOutput());</font></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;"><span style="white-space:pre-wrap;"><font color="#000000">        </font></span><font color="#000000">opening-&gt;SetBackgroundValue(0);</font></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;"><span style="white-space:pre-wrap;"><font color="#000000">        </font></span><font color="#000000">opening-&gt;SetLambda( 100 );</font></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;"><span style="white-space:pre-wrap;"><font color="#000000">        </font></span><font color="#000000">opening-&gt;SetReverseOrdering( false );</font></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;"><font color="#000000">//NO IDEA About the Attribute</font></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;"><font color="#000000">//I thought it should be the labelMap-&gt;Size()) should be as attribute</font></p>

<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;"><span style="white-space:pre-wrap;"><font color="#000000">        </font></span><font color="#000000">opening-&gt;SetAttribute("PERIMETER");</font></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;"><span style="white-space:pre-wrap;"><font color="#000000">        </font></span><font color="#000000">itk::SimpleFilterWatcher watcher(opening, "filter");</font></p>

<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;min-height:13.0px;"><span style="white-space:pre-wrap;"><font color="#000000">        </font></span></p><p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;min-height:13.0px;">
<span style="white-space:pre-wrap;">T</span>hen i would like to get back the binary image and see it but i can't get the proper image types as input to LabelMapToLabelIamgeFilter....So the commented part is not working</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;min-height:13.0px;"><br></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;color:#06830e;"><span style="color:#000000;"><span style="white-space:pre-wrap;">        </span></span>/*typedef itk::LabelMapToLabelImageFilter&lt; LabelImageType, LabelImageType &gt; L2IType;&nbsp;</p>

<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;color:#06830e;"><span style="white-space:pre-wrap;">        </span>L2IType::Pointer l2i = L2IType::New();&nbsp;</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;color:#06830e;"><span style="white-space:pre-wrap;">        </span>l2i-&gt;SetInput( opening-&gt;GetOutput() );</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;color:#06830e;min-height:13.0px;"><span style="white-space:pre-wrap;">        </span></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;color:#06830e;"><span style="white-space:pre-wrap;">        </span>typedef itk::ImageFileWriter&lt; LabelImageType &gt; WriterType;</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;color:#06830e;"><span style="white-space:pre-wrap;">        </span>WriterType::Pointer writer = WriterType::New();</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;color:#06830e;"><span style="white-space:pre-wrap;">        </span>writer-&gt;SetInput( l2i-&gt;GetOutput() );</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;color:#06830e;"><span style="white-space:pre-wrap;">        </span>writer-&gt;SetFileName( "/Users/ellaK/Documents/Morphology/Opening.gipl");</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;color:#06830e;"><span style="white-space:pre-wrap;">        </span>writer-&gt;Update();*/</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;color:#3d2380;"><span style="color:#000000;"><span style="white-space:pre-wrap;">        </span></span><span style="color:#6f41a8;">s</span><font color="#000000">td::getchar();</font></p>
<div><span style="color:#000000;"><br></span></div><div><span style="color:#000000;"><br></span></div><div><span style="color:#000000;"><br></span></div><div><span style="color:#000000;">Maybe i am doing this the wrong way, and i can't use it for 3D images.</span></div>
<div><span style="color:#000000;">If anybody already already worked with this filters please give me a hint to what i am doing wrong.</span></div><div><span style="color:#000000;">Thanks,</span></div><div><span style="color:#000000;">&nbsp;&nbsp; Ella</span></div>
</div></td></tr></tbody></table><br>_____________________________________<br>
Powered by <a rel="nofollow" target="_blank" href="http://www.kitware.com">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a rel="nofollow" target="_blank" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a rel="nofollow" target="_blank" href="http://www.kitware.com/products/protraining.html">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a rel="nofollow" target="_blank" href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a rel="nofollow" target="_blank" href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br>
</div></blockquote></b></div></td></tr></table>