[ITK] [ITK-users] Geodesic Shape Guidance in Python
Robert
scorpiuni at gmail.com
Tue Apr 26 16:03:11 EDT 2016
Hello, thanks for the reply.
I actually wrapped it myself/with help from the forum. I can publish my
.wrap files if it's helpful, I have a few more, all related to PCA stuff.
I will have a go at the itk Vector tomorrow morning, I hope it works, I
already tried around a bit with itk vectors after posting my question.
What about the other problem? Is there a solution for it as well? It is
currently slowing down my work significantly.
This
> CostFunctionType::ArrayType mean(
shape->GetNumberOfShapeParameters() );
> CostFunctionType::ArrayType stddev(
shape->GetNumberOfShapeParameters() );
should be solvable with something along the lines of itk.ArrayType.New(),
right? I think that ArrayType is available as wrapping.
But for the rest, like,
> OptimizerType::ScalesType scales( shape->GetNumberOfParameters() );
> scales.Fill( 1.0 );
> for( unsigned int k = 0; k < numberOfPCAModes; k++ )
> {
> scales[k] = 20.0; // scales for the pca mode multiplier
> }
I could not come up with anything in my mind. Basically, I'm trying to
recreate the GeodesicActiveContourWithShapeGuidance example from the
Handbook, and the last few lines where stuff like described above appears
give me some trouble....
Thanks for any input, and have a nice evening,
Robert
--
View this message in context: http://itk-insight-users.2283740.n2.nabble.com/Geodesic-Shape-Guidance-in-Python-tp7588780p7588783.html
Sent from the ITK Insight Users mailing list archive at Nabble.com.
_____________________________________
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