There's a 'box' structuring element defined in itkFlatStructuringElement.h (review directory)<br><br><div class="gmail_quote">On Tue, Mar 1, 2011 at 1:23 PM, Neal R. Harvey <span dir="ltr"><<a href="mailto:harve@lanl.gov">harve@lanl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I'm thinking you may not want or need to go to the bother of writing<br>
such a function. A neighbohood maximum operator is a dilation with a flat<br>
structuring element and there already exists an operator within ITK to do<br>
dilation. You would just need to define your structuring element appropriately<br>
for the neighborhood in which you are interested. I can't see any existing code<br>
that would create a square (cube for n-D) structuring element, though (there is code for balls and crosses), but it might not be that hard to create "cube" structuring element code by making some simple modifications<br>
to the ball structuring element code. Then, all you'd need to do was use this<br>
to create your structuring element (i.e. define the neighborhood of interest)<br>
and then use the dilation function that already exists.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Message: 3<br>
Date: Tue, 1 Mar 2011 16:38:26 +0200<br>
From: john smith <<a href="mailto:mkitkinsightuser@gmail.com" target="_blank">mkitkinsightuser@gmail.com</a>><br>
Subject: Re: [Insight-users] (no subject)<br>
To: David Doria <<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>>, <a href="mailto:insight-users@itk.org" target="_blank">insight-users@itk.org</a><br>
Message-ID:<br>
<<a href="mailto:AANLkTimX-o4UkLVeWfitbL1b2sLo3h-TE7Okds3sxe9v@mail.gmail.com" target="_blank">AANLkTimX-o4UkLVeWfitbL1b2sLo3h-TE7Okds3sxe9v@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Hello,<br>
<br>
Well, I have made all the changes and my program gives me (I think) correct<br>
results. But I have some questions to continue my project. As a following<br>
step, I want to write all my max values from every neighborhood iterator in<br>
a single pixel of an output image. How can organize my max values as an<br>
object (maybe by creating a new region iterator?), to put it through a new<br>
writer filter, in order to take my output image? Also, supposing that I have<br>
taken my output image, then this project which will be consisted of an .cxx<br>
and .txt file format (for visual studio and cmake), could be considered as<br>
a new developed Filter?<br>
</blockquote>
<br>
-- <br>
HARVE (Neal R. Harvey) Email: <a href="mailto:harve@lanl.gov" target="_blank">harve@lanl.gov</a><br>
ISR-2 Phone: 505 667 9077<br>
Los Alamos National Laboratory Fax: 505 664 0362<br>
Los Alamos, NM 87545, USA Mail Stop: D-436<br>
The generation of random numbers is too important to be left to chance.<br>
<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><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>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<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>
</blockquote></div><br>