[ITK] [ITK-users] How can I calculate PCA Principal Modes means?
Viki MCG
vikimcg at gmail.com
Mon Jun 29 15:54:44 EDT 2015
I'm using itk::GeodesicActiveContourShapePriorLevelSetImageFilter. I read
the example given in (
http://www.itk.org/Doxygen/html/Examples_2Segmentation_2GeodesicActiveContourShapePriorLevelSetImageFilter_8cxx-example.html)
but I don't understand the following paragraph.
// The parameters of the distribution are user-specified. Since we
// assumed the principal modes have already been normalized,
// we set the distribution to zero mean and unit variance.
CostFunctionType::ArrayType mean( shape->GetNumberOfShapeParameters() );
CostFunctionType::ArrayType stddev( shape->GetNumberOfShapeParameters() );
mean.Fill( 0.0 );
stddev.Fill( 1.0 );
costFunction->SetShapeParameterMeans( mean );
costFunction->SetShapeParameterStandardDeviations( stddev );
Supposing that I have NOT normalized the principal modes, how can I
calculate their means? I got principal modes using
itk::ImagePCAShapeModelEstimator and I know their standard deviations are
sqrt(eigen values), but I don't see how can I know their means.
Any help would be very appreciated.
Thanks in advance,
Viki.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20150629/fef22e98/attachment.html>
-------------- next part --------------
_____________________________________
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.php
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://public.kitware.com/mailman/listinfo/insight-users
More information about the Community
mailing list