<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi Gaetan,<div>my first test I just used a value of 250 (lambda) and I presume it was pixels. The output looked correct without too much testing/comparing with other results. When you say that it can work with physical units, you mean that 250 could be a volume (say in L) if you knew that a single pixel = 100mL?</div><div>For number of pixels, if the type is the default and there is overflow, will I get a message? I presume that I need a larger type if I'm looking for many small areas in a large image, correct?</div><div>Thanks for your help guys, I really appreciate it.</div><div>Conrad :)<br><br>--- On <b>Wed, 6/17/09, Gaëtan Lehmann <i>&lt;gaetan.lehmann@jouy.inra.fr&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Gaëtan Lehmann &lt;gaetan.lehmann@jouy.inra.fr&gt;<br>Subject:
 Re: [Insight-users] areaOpeningImageFilter difficulties<br>To: "Conrad Bielski" &lt;conrad_bielski@yahoo.com&gt;<br>Cc: "Luis Ibanez" &lt;luis.ibanez@kitware.com&gt;, insight-users@itk.org, Richard.Beare@ieee.org<br>Date: Wednesday, June 17, 2009, 10:25 AM<br><br><div class="plainMail"><br>Hi,<br><br>You won't find that parameter in Richard's original paper. That's a parameter I have added to make the area opening filter able to work with a component object size in pixels or in physical unit with a high precision. When using a number of pixels, you may prefer to used the type unsigned long.<br>Most of the time, the default type should be fine though.<br><br>Gaëtan<br><br><br>Le 17 juin 09 à 14:45, Conrad Bielski a écrit :<br><br>&gt; Dear Luis,<br>&gt; thanks for that. I actually did find the test code and got it working from there (at least the lambda). I'm actually using OTB and got that hint from their maintainers. I will certainly look at the
 Journal papers as well in order to know exactly what is going on.<br>&gt; Keep up the great work!<br>&gt; Conrad :)<br>&gt; <br>&gt; --- On Wed, 6/17/09, Luis Ibanez &lt;<a ymailto="mailto:luis.ibanez@kitware.com" href="/mc/compose?to=luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>&gt; wrote:<br>&gt; <br>&gt; From: Luis Ibanez &lt;<a ymailto="mailto:luis.ibanez@kitware.com" href="/mc/compose?to=luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>&gt;<br>&gt; Subject: Re: [Insight-users] areaOpeningImageFilter difficulties<br>&gt; To: "Conrad Bielski" &lt;<a ymailto="mailto:conrad_bielski@yahoo.com" href="/mc/compose?to=conrad_bielski@yahoo.com">conrad_bielski@yahoo.com</a>&gt;<br>&gt; Cc: <a ymailto="mailto:insight-users@itk.org" href="/mc/compose?to=insight-users@itk.org">insight-users@itk.org</a>, <a ymailto="mailto:Richard.Beare@ieee.org" href="/mc/compose?to=Richard.Beare@ieee.org">Richard.Beare@ieee.org</a>, "Gaëtan Lehmann" &lt;<a
 ymailto="mailto:gaetan.lehmann@jouy.inra.fr" href="/mc/compose?to=gaetan.lehmann@jouy.inra.fr">gaetan.lehmann@jouy.inra.fr</a>&gt;<br>&gt; Date: Wednesday, June 17, 2009, 4:40 AM<br>&gt; <br>&gt; Hi Conrad,<br>&gt; <br>&gt; You may want to read the description of this filter in<br>&gt; the Insight Journal paper:<br>&gt; <br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;<a href="http://hdl.handle.net/1926/1316" target="_blank">http://hdl.handle.net/1926/1316</a><br>&gt; <a href="http://www.insight-journal.org/browse/publication/203" target="_blank">http://www.insight-journal.org/browse/publication/203</a><br>&gt; <br>&gt; and start from the code of the test:<br>&gt; <br>&gt; Insight/Testing/Code/Review/<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; itkAreaOpeningImageFilterTest.cxx<br>&gt; <br>&gt; <br>&gt; It seems that you will be safe by using the default<br>&gt; value for the third template parameter "TAttribute".<br>&gt; It is used as the type for the components of the<br>&gt;
 image spacing.<br>&gt; <br>&gt; <br>&gt;&nbsp; &nbsp; &nbsp; Regards,<br>&gt; <br>&gt; <br>&gt; <br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Luis<br>&gt; <br>&gt; <br>&gt; <br>&gt; ----------------------------------------<br>&gt; On Tue, Jun 16, 2009 at 11:20 AM, Conrad Bielski &lt;<a ymailto="mailto:conrad_bielski@yahoo.com" href="/mc/compose?to=conrad_bielski@yahoo.com">conrad_bielski@yahoo.com</a>&gt; wrote:<br>&gt; Hi,<br>&gt; I wanted to test the itk::areaOpeningImageFilter but I am unsure of how to specify the TAttribute for this filter. I can't seem to find the documentation for this class.<br>&gt; <br>&gt; If anybody has some example code that uses this filter and is willing to share or could explain what I need to do I would be very grateful.<br>&gt; Thanks in advance and have a great day,<br>&gt; Conrad :)<br>&gt; <br>&gt; <br>&gt; <br>&gt; _____________________________________<br>&gt; Powered by www.kitware.com<br>&gt; <br>&gt; Visit
 other Kitware open-source projects at<br>&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>&gt; <br>&gt; Please keep messages on-topic and check the ITK FAQ at: <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>&gt; <br>&gt; Follow this link to subscribe/unsubscribe:<br>&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>&gt; <br>&gt; <br>&gt; <br><br>--Gaëtan Lehmann<br>Biologie du Développement et de la Reproduction<br>INRA de Jouy-en-Josas (France)<br>tel: +33 1 34 65 29 66&nbsp; &nbsp; fax: 01 34 65 29 09<br><a href="http://voxel.jouy.inra.fr" target="_blank">http://voxel.jouy.inra.fr</a>&nbsp; <a href="http://www.itk.org" target="_blank">http://www.itk.org</a><br><a href="http://www.mandriva.org"
 target="_blank">http://www.mandriva.org</a>&nbsp; <a href="http://www.bepo.fr" target="_blank">http://www.bepo.fr</a><br><br></div></blockquote></div></td></tr></table><br>