Hello ITK users,<br><div class="gmail_quote"><div><br></div><div>Does anyone know of a usage example of the <a href="http://www.itk.org/Doxygen/html/classitk_1_1MetaLandmarkConverter.html" target="_blank">itkMetaLandmarkConverter</a>?</div>
<div>My goal is to read in landmarks in a meta-format, such as the attached example, and use these to produce a transform (say, from a moving image onto a fixed image).  </div>
<div>So far my code looks like this:</div><div><br></div><div>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:#008000">//</span><span style="color:#c0c0c0"> </span><span style="color:#008000">Read</span><span style="color:#c0c0c0"> </span><span style="color:#008000">both</span><span style="color:#c0c0c0"> </span><span style="color:#008000">landmark</span><span style="color:#c0c0c0"> </span><span style="color:#008000">files</span></pre>


<pre style="margin-top:0px;margin-bottom:0px"><span style="color:#c0c0c0">  </span><span style="color:#808000">typedef</span><span style="color:#c0c0c0"> </span><span style="color:#800080">itk</span>::<span style="color:#800080">MetaLandmarkConverter</span>&lt;<span style="color:#c0c0c0"> </span>Dimension<span style="color:#c0c0c0"> </span>&gt;<span style="color:#c0c0c0"> </span><span style="color:#800080">metaReaderType</span>;</pre>


<pre style="margin-top:0px;margin-bottom:0px"><span style="color:#c0c0c0">        </span><span style="color:#808000">const</span><span style="color:#c0c0c0"> </span><span style="color:#808000">char</span><span style="color:#c0c0c0"> </span>*<span style="color:#c0c0c0"> </span>fixedLandmarkFilename<span style="color:#c0c0c0"> </span>=<span style="color:#c0c0c0"> </span>argv[<span style="color:#000080">3</span>];</pre>


<pre style="margin-top:0px;margin-bottom:0px"><span style="color:#c0c0c0">  </span><span style="color:#800080">metaReaderType</span><span style="color:#c0c0c0"> </span>fixedLandmarkReader;</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:#c0c0c0">  </span>fixedLandmarkReader.ReadMeta(fixedLandmarkFilename);</pre>
<pre style="margin-top:0px;margin-bottom:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:#c0c0c0">        </span><span style="color:#808000">const</span><span style="color:#c0c0c0"> </span><span style="color:#808000">char</span><span style="color:#c0c0c0"> </span>*<span style="color:#c0c0c0"> </span>movingLandmarkFilename<span style="color:#c0c0c0"> </span>=<span style="color:#c0c0c0"> </span>argv[<span style="color:#000080">4</span>];</pre>


<pre style="margin-top:0px;margin-bottom:0px"><span style="color:#c0c0c0">  </span><span style="color:#800080">metaReaderType</span><span style="color:#c0c0c0"> </span>movingLandmarkReader;</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:#c0c0c0">  </span>movingLandmarkReader.ReadMeta(movingLandmarkFilename);</pre></div><div><br></div><div>Thanks,</div><div>Christopher Mullins</div>
</div><br>