<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&amp;root=Insight&amp;view=log">http://www.itk.org/cgi-bin/viewcvs.cgi/Code/BasicFilters/itkCheckerBoardImageFilter.h?rev=1.4&amp;root=Insight&amp;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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FilterType::PatternArrayType<br><br><br>as the argument to SetCheckerPattern()<br><br><br><br>Regards,<br><br><br>&nbsp;&nbsp;&nbsp; Luis<br><br><br><br>==================================
<br><div><span class="gmail_quote">On 7/9/07, <b class="gmail_sendername">Emma Ryan</b> &lt;<a href="mailto:eryanvtk@yahoo.com">eryanvtk@yahoo.com</a>&gt; 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>&gt;<i>
 Hi,<br></i>&gt;<i> <br></i>&gt;<i> The itkCheckerBoardImageFilter will produce 4 boxes in each dimension,<br></i>&gt;<i> regardless of the image size, and there is no way of changing this.<br></i>&gt;<i> <br></i>&gt;<i> Included below is a trivial patch to allow specifying the number of
<br></i>&gt;<i> checker boxes per dimension. The default behaviour is still the same,<br></i>&gt;<i> and it has been tested and works fine.<br></i>&gt;<i> <br></i>&gt;<i> Thanks,<br></i>&gt;<i> <br></i>&gt;<i>   :: Gavin<br>
</i>&gt;<i> <br></i>&gt;<i> <br></i>&gt;<i> <br></i>&gt;<i>
 ------------------------------------------------------------------------<br></i>&gt;<i> <br></i>&gt;<i> Index: itkCheckerBoardImageFilter.h<br></i>&gt;<i> ===================================================================
<br></i>&gt;<i> RCS file: /cvsroot/Insight/Insight/Code/BasicFilters/itkCheckerBoardImageFilter.h,v<br></i>&gt;<i> retrieving revision 1.2<br></i>&gt;<i> diff -u -r1.2 itkCheckerBoardImageFilter.h<br></i>&gt;<i> --- itkCheckerBoardImageFilter.h
        2 May 2005 02:24:39 -0000       1.2<br></i>&gt;<i> +++ itkCheckerBoardImageFilter.h        23 May 2005 05:38:02 -0000<br></i>&gt;<i> @@ -71,7 +71,18 @@<br></i>&gt;<i>  <br></i>&gt;<i>    /** Connect one of the operands for checker board */
<br></i>&gt;<i>    void SetInput2( const TImage * image2);<br></i>&gt;<i> -<br></i>&gt;<i> +    <br></i>&gt;<i> +  /** Specifies the number of checker boxes per dimension */<br></i>&gt;<i> +  void SetCheckerPattern( unsigned int p )
<br></i>&gt;<i> +  {<br></i>&gt;<i> +   <br> m_CheckerPattern.Fill( p );<br></i>&gt;<i> +  }<br></i>&gt;<i> +<br></i>&gt;<i> +  /** Specifies the number of checker boxes per dimension */<br></i>&gt;<i> +  unsigned int GetCheckerPattern()
<br></i>&gt;<i> +  {<br></i>&gt;<i> +    return m_CheckerPattern[0];<br></i>&gt;<i> +  }<br></i>&gt;<i>  <br></i>&gt;<i>  protected:<br></i>&gt;<i>    CheckerBoardImageFilter();<br></i>&gt;<i> <br></i>&gt;<i> <br></i>&gt;
<i> ------------------------------------------------------------------------<br></i>&gt;<i> <br></i>&gt;<i> _______________________________________________<br></i>&gt;<i> Insight-users mailing list<br></i>&gt;<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>&gt;<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&#39;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&#39;s on, when. 


</span></div></blockquote></div><br>