[Insight-users] Histogram Example ItkSoftwareGuide
Hernan Ledesma
fledesma at inti.gob.ar
Fri Apr 15 15:48:47 EDT 2011
Hi all,
in chapter 10 of http://www.itk.org/ItkSoftwareGuide.pdf, page 615
Does anybody know how "mv" data is associated with "histogram" object?
is through "index" objetc?
here is the code:
...
HistogramType::MeasurementVectorType mv ;
mv[0] = 4.1 ;
mv[1] = 5.6 ;
index.Fill(1) ;
// We retrieve the measurement vector at the index value (1, 1), the
center bin’s measurement
// vector. The output is [4.1, 5.6].
std::cout << "Measurement vector at the center bin is "
<< histogram->GetMeasurementVector(index) << std::endl ;
...
Thanks!
More information about the Insight-users
mailing list