<br>Hi Emma,<br><br><br>
These methods were added to ITK on May 25th 2005:<br>
<a href="http://www.itk.org/cgi-bin/viewcvs.cgi/Code/BasicFilters/itkCheckerBoardImageFilter.h?rev=1.4&root=Insight&view=log">http://www.itk.org/cgi-bin/viewcvs.cgi/Code/BasicFilters/itkCheckerBoardImageFilter.h?rev=1.4&root=Insight&view=log
</a><br>
<br><br>Please look at the Doxygen documentation of the CheckerBoardImageFilter.<br><br>You will find the methods:<br><br>GetCheckerPattern
()<br><a href="http://public.kitware.com/Insight/Doxygen/html/classitk_1_1CheckerBoardImageFilter.html#itk_1_1CheckerBoardImageFilterz553_0">http://public.kitware.com/Insight/Doxygen/html/classitk_1_1CheckerBoardImageFilter.html#itk_1_1CheckerBoardImageFilterz553_0
</a><br><br>And<br><br>SetCheckerPattern
()<br><a href="http://public.kitware.com/Insight/Doxygen/html/classitk_1_1CheckerBoardImageFilter.html#itk_1_1CheckerBoardImageFilterz553_1">http://public.kitware.com/Insight/Doxygen/html/classitk_1_1CheckerBoardImageFilter.html#itk_1_1CheckerBoardImageFilterz553_1
</a><br><br><br>You should use a type <br><br><br> FilterType::PatternArrayType<br><br><br>as the argument to SetCheckerPattern()<br><br><br><br>Regards,<br><br><br> Luis<br><br><br><br>==================================
<br><div><span class="gmail_quote">On 7/9/07, <b class="gmail_sendername">Emma Ryan</b> <<a href="mailto:eryanvtk@yahoo.com">eryanvtk@yahoo.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><pre>Hi Luis,<br><br> Attached below is a copy of your email exchanges with Gavin Baker. He suggests some additions to the checkerboard
<br>generator. I would like to use these. Your reply states that they have been added to ITK, but I have the latest version of ITK<br>and I am not able to use setCheckerPattern or getCheckerPattern.<br><br>Do they go by a different name ?
<br><br>I checked the Inheritance diagram, but none of the functions came close.<br><br>thanks in advance,<br>Emma<br><br><br>Hi Gavin,<br><br>Thanks for pointing this out and for providing the patch to fix it.<br><br>We committed your changes with a slight modification. Given that the
<br>checkerboard pattern can be specified using different number of<br> checkers<br>along every dimension, we defined the Set()/Get() methods by using<br>the ArrayType instead of a single scalar.<br><br><br>The test for the filter was updated accordingly.
<br><br><br>Please update your CVS checkout and let us know if you find any<br>other problem,<br><br><br><br> Thanks<br><br><br> Luis<br><br><br><br>------------------------<br>Gavin Baker wrote:<br><br>><i>
Hi,<br></i>><i> <br></i>><i> The itkCheckerBoardImageFilter will produce 4 boxes in each dimension,<br></i>><i> regardless of the image size, and there is no way of changing this.<br></i>><i> <br></i>><i> Included below is a trivial patch to allow specifying the number of
<br></i>><i> checker boxes per dimension. The default behaviour is still the same,<br></i>><i> and it has been tested and works fine.<br></i>><i> <br></i>><i> Thanks,<br></i>><i> <br></i>><i> :: Gavin<br>
</i>><i> <br></i>><i> <br></i>><i> <br></i>><i>
------------------------------------------------------------------------<br></i>><i> <br></i>><i> Index: itkCheckerBoardImageFilter.h<br></i>><i> ===================================================================
<br></i>><i> RCS file: /cvsroot/Insight/Insight/Code/BasicFilters/itkCheckerBoardImageFilter.h,v<br></i>><i> retrieving revision 1.2<br></i>><i> diff -u -r1.2 itkCheckerBoardImageFilter.h<br></i>><i> --- itkCheckerBoardImageFilter.h
2 May 2005 02:24:39 -0000 1.2<br></i>><i> +++ itkCheckerBoardImageFilter.h 23 May 2005 05:38:02 -0000<br></i>><i> @@ -71,7 +71,18 @@<br></i>><i> <br></i>><i> /** Connect one of the operands for checker board */
<br></i>><i> void SetInput2( const TImage * image2);<br></i>><i> -<br></i>><i> + <br></i>><i> + /** Specifies the number of checker boxes per dimension */<br></i>><i> + void SetCheckerPattern( unsigned int p )
<br></i>><i> + {<br></i>><i> + <br> m_CheckerPattern.Fill( p );<br></i>><i> + }<br></i>><i> +<br></i>><i> + /** Specifies the number of checker boxes per dimension */<br></i>><i> + unsigned int GetCheckerPattern()
<br></i>><i> + {<br></i>><i> + return m_CheckerPattern[0];<br></i>><i> + }<br></i>><i> <br></i>><i> protected:<br></i>><i> CheckerBoardImageFilter();<br></i>><i> <br></i>><i> <br></i>>
<i> ------------------------------------------------------------------------<br></i>><i> <br></i>><i> _______________________________________________<br></i>><i> Insight-users mailing list<br></i>><i> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
Insight-users at itk.org</a><br></i>><i> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.itk.org/mailman/listinfo/insight-users
</a>
</i></pre><span class="ad"><br></span></div></div><span class="ad"><br>
<hr size="1">Sick sense of humor? Visit Yahoo! TV's
<a href="http://us.rd.yahoo.com/evt=47093/*http://tv.yahoo.com/collections/222" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Comedy with an Edge </a>to see what's on, when.
</span></div></blockquote></div><br>