[Insight-users] Histogram Example ItkSoftwareGuide
robert tamburo
robert.tamburo at gmail.com
Fri Apr 15 15:58:31 EDT 2011
MeasurementVectorType is defined in the Histogram class as:
typedef typename Superclass::MeasurementVectorType
MeasurementVectorType;
The superclass is Sample:
typedef Sample< FixedArray< TMeasurement, VMeasurementVectorSize >
> Superclass;
On Fri, Apr 15, 2011 at 3:48 PM, Hernan Ledesma <fledesma at inti.gob.ar>wrote:
> 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!
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110415/6fe562a1/attachment.htm>
More information about the Insight-users
mailing list