I am using the ITK python wheels and was doing a survey of the DistanceMap filters. While trying the ApproximateSignedDistanceMapImageFilter I got an error. Sample code and error below, can anyone give me a hint as to why this happens? Thanks in advance
That error message is not very informative. You may get a better error message if you add:
mapping_filter.SetNumberOfThreads(1)
If that does not give a better error message, I’m inclined to thing that there may be something unexpected with your input image. Can you share your input data? Or can you procedurally produce an image which reproduces the problem?