<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><gaetan.lehmann@jouy.inra.fr></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 <gaetan.lehmann@jouy.inra.fr><br>Subject:
Re: [Insight-users] areaOpeningImageFilter difficulties<br>To: "Conrad Bielski" <conrad_bielski@yahoo.com><br>Cc: "Luis Ibanez" <luis.ibanez@kitware.com>, 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>> Dear Luis,<br>> 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>> Keep up the great work!<br>> Conrad :)<br>> <br>> --- On Wed, 6/17/09, Luis Ibanez <<a ymailto="mailto:luis.ibanez@kitware.com" href="/mc/compose?to=luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>> wrote:<br>> <br>> From: Luis Ibanez <<a ymailto="mailto:luis.ibanez@kitware.com" href="/mc/compose?to=luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>><br>> Subject: Re: [Insight-users] areaOpeningImageFilter difficulties<br>> To: "Conrad Bielski" <<a ymailto="mailto:conrad_bielski@yahoo.com" href="/mc/compose?to=conrad_bielski@yahoo.com">conrad_bielski@yahoo.com</a>><br>> 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" <<a
ymailto="mailto:gaetan.lehmann@jouy.inra.fr" href="/mc/compose?to=gaetan.lehmann@jouy.inra.fr">gaetan.lehmann@jouy.inra.fr</a>><br>> Date: Wednesday, June 17, 2009, 4:40 AM<br>> <br>> Hi Conrad,<br>> <br>> You may want to read the description of this filter in<br>> the Insight Journal paper:<br>> <br>> <a href="http://hdl.handle.net/1926/1316" target="_blank">http://hdl.handle.net/1926/1316</a><br>> <a href="http://www.insight-journal.org/browse/publication/203" target="_blank">http://www.insight-journal.org/browse/publication/203</a><br>> <br>> and start from the code of the test:<br>> <br>> Insight/Testing/Code/Review/<br>> itkAreaOpeningImageFilterTest.cxx<br>> <br>> <br>> It seems that you will be safe by using the default<br>> value for the third template parameter "TAttribute".<br>> It is used as the type for the components of the<br>>
image spacing.<br>> <br>> <br>> Regards,<br>> <br>> <br>> <br>> Luis<br>> <br>> <br>> <br>> ----------------------------------------<br>> On Tue, Jun 16, 2009 at 11:20 AM, Conrad Bielski <<a ymailto="mailto:conrad_bielski@yahoo.com" href="/mc/compose?to=conrad_bielski@yahoo.com">conrad_bielski@yahoo.com</a>> wrote:<br>> Hi,<br>> 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>> <br>> 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>> Thanks in advance and have a great day,<br>> Conrad :)<br>> <br>> <br>> <br>> _____________________________________<br>> Powered by www.kitware.com<br>> <br>> Visit
other Kitware open-source projects at<br>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>> <br>> 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>> <br>> Follow this link to subscribe/unsubscribe:<br>> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>> <br>> <br>> <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 fax: 01 34 65 29 09<br><a href="http://voxel.jouy.inra.fr" target="_blank">http://voxel.jouy.inra.fr</a> <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> <a href="http://www.bepo.fr" target="_blank">http://www.bepo.fr</a><br><br></div></blockquote></div></td></tr></table><br>