I got an error : in method ‘itkBlockMatchingImageFilterIF3_SetFeaturePoints’, argument 2 of type ‘itkPointSetMD33STMD3333FFMD33 const *’. Does anyone know how to make the pointset type to be MD33STMD3333FFMD33??
Hello! Thank you for your reply!
Yes, I have tried the itk.D and i still got the same error.
I used help() function to check the type of arguments in Blockmatchingfilter and i got:
Help on itkBlockMatchingImageFilterIF3 in module itkBlockMatchingImageFilterPython object:
class itkBlockMatchingImageFilterIF3(itkBlockMatchingImageFilterIF3_Superclass)
| Computes displacements of given points from a fixed image in a
| floating image.
| …
| …
| …
| SetFeaturePoints = itkBlockMatchingImageFilterIF3_SetFeaturePoints(…)
| itkBlockMatchingImageFilterIF3_SetFeaturePoints(itkBlockMatchingImageFilterIF3 self, itkPointSetMD33STMD3333FFMD33 _arg)
|
| SetFixedImage = itkBlockMatchingImageFilterIF3_SetFixedImage(…)
| itkBlockMatchingImageFilterIF3_SetFixedImage(itkBlockMatchingImageFilterIF3 self, itkImageF3 _arg)
|
| SetMovingImage = itkBlockMatchingImageFilterIF3_SetMovingImage(…)
| itkBlockMatchingImageFilterIF3_SetMovingImage(itkBlockMatchingImageFilterIF3 self, itkImageF3 _arg)
| …
I know that itkBlockMatchingImageFilterIF3 should be an image object of float type and with dimension 3, but i am totally lost by the definition of itkPointSetMD33STMD3333FFMD33.
Do you have any idea what does it mean? How could i define the pointset object?
( In the c++ example, the pointset object was defined as following
using PointSetType = BlockMatchingImageFilterType::FeaturePointsType;
using PointType = PointSetType::PointType;
using PointsContainerPointer = PointSetType::PointsContainerPointer;
PointSetType::Pointer pointSet = PointSetType::New();
PointsContainerPointer points = pointSet->GetPoints();