MeasurementVectorType is defined in the Histogram class as:<div>typedef typename Superclass::MeasurementVectorType MeasurementVectorType;</div><div><br></div><div>The superclass is Sample:</div><div>typedef Sample< FixedArray< TMeasurement, VMeasurementVectorSize > > Superclass; </div>
<div><br></div><div><br></div><div><br><div class="gmail_quote">On Fri, Apr 15, 2011 at 3:48 PM, Hernan Ledesma <span dir="ltr"><<a href="mailto:fledesma@inti.gob.ar">fledesma@inti.gob.ar</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi all,<br>
<br>
in chapter 10 of <a href="http://www.itk.org/ItkSoftwareGuide.pdf" target="_blank">http://www.itk.org/ItkSoftwareGuide.pdf</a>, page 615<br>
<br>
Does anybody know how "mv" data is associated with "histogram" object?<br>
<br>
is through "index" objetc?<br>
<br>
here is the code:<br>
<br>
...<br>
HistogramType::MeasurementVectorType mv ;<br>
mv[0] = 4.1 ;<br>
mv[1] = 5.6 ;<br>
index.Fill(1) ;<br>
<br>
// We retrieve the measurement vector at the index value (1, 1), the center bin’s measurement<br>
// vector. The output is [4.1, 5.6].<br>
<br>
std::cout << "Measurement vector at the center bin is "<br>
<< histogram->GetMeasurementVector(index) << std::endl ;<br>
...<br>
<br>
Thanks!<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></div>