<meta http-equiv="content-type" content="text/html; charset=utf-8"><div><div><div class="gmail_quote">On Thu, Feb 24, 2011 at 1:51 PM, john smith <span dir="ltr"><<a href="mailto:mkitkinsightuser@gmail.com">mkitkinsightuser@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello, <br><br>I am trying to develop my own median filter in visualstudio 2010 with cmake. I would like to make some questions. First of all, is it neccessary to make a face list for the boundary pixel control? Secondly, in which file format must I set the radius condition (I think it must be set in the .txx file format)? Thirdly, is there a function to get the median value among the nine pixels of a 3x3 neighborhood iterator? Has someone good examples which are using neighborhood iterators except of those that are mentioned in itk user's guide and in the link <i><a href="http://www.itk.org/Wiki/ITK/Examples/Developer/ImageFilter" target="_blank">http://www.itk.org/Wiki/ITK/Examples/Developer/ImageFilter</a> </i>(as I am a little bit confused).<br>
<br>Thanks in advance<br><br></blockquote><div><br></div><div>You probably want to look into the concept of a neighborhood iterator. Here is an example:</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://www.itk.org/Wiki/ITK/Examples/Iterators/ConstNeighborhoodIterator">http://www.itk.org/Wiki/ITK/Examples/Iterators/ConstNeighborhoodIterator</a></div>
<div class="gmail_quote"><br></div><div class="gmail_quote"><a href="http://www.itk.org/Wiki/ITK/Examples/Iterators/ConstNeighborhoodIterator"></a>And with the neighborhood iterator you can choose what to do with the pixels that are out of bounds:<br clear="all">
<a href="http://www.itk.org/Wiki/ITK/Examples/Iterators/ConstantBoundaryCondition">http://www.itk.org/Wiki/ITK/Examples/Iterators/ConstantBoundaryCondition</a><div><a href="http://www.itk.org/Wiki/ITK/Examples/Iterators/ConstantBoundaryCondition"></a><div>
<br></div></div><div>David </div></div></div></div>