Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Problems with the python wrapping of ShapePriorMAPCostFunction #871
There seems to be a problem using the ShapePriorMAPCostFunction class in python.
When assigning the mean and stddev vectors and then printing the cost function object, those arrays seem to be empty. This assignment does not create a problem in C++. The test here uses the ShapePriorMAPCostFunction and it works perfectly.
Steps to Reproduce
In python, I create a ShapePriorMAPCostFunction in the following way:
I try to use this costfunction object in a GeodesicActiveContourShapePriorLevelSetImage filter, and when I update the filter I get the following error:
When I print the costfunction object I created in the way I described I see this information:
Note that despite having assigned the mean and stddev vectors, they seem to be empty in the costfunction object.
If I try to access the costfunction variable by print costfunction.GetShapeParameterMeans() I get the following information:
I expect my filter to have the same behavior than the C++ code. It doesnt.
I run my jupyter notebook with precompiled itk python packages from last week (05/10/2019)
I am running this in a python jupyter notebook.