Robert
Robert

Reputation: 33

PCA with ITK in Python

Ineed to implement a PCA analysis with ITK in Python. After looking in the manuel, it seems easy enough.

typedef itk::ImagePCAShapeModelEstimator<ImageType,   ImageType >  my_Estimatortype;

However, in Python, I can't find the function. It should be something like

itk.ImagePCAShapeModelEstimator[ImageType, ImageType]

Am I missing something here, or is the ITK lib in Python not complete (I'm using the normal itk, not the SimpleITK)

Upvotes: 3

Views: 292

Answers (1)

blowekamp
blowekamp

Reputation: 1431

The ImagePCAShapeModelEstimator is not currently wrapped for ITK. If you look inside the ITK repository a ".wrap" file is needed for wrapping. This is currently missing for this class [1]. It is generally not too hard to add a wrap file by finding a similar class' wrap file and copying it.

[1] https://github.com/InsightSoftwareConsortium/ITK/tree/13ff271d953658d192805f6ddc3a15d5ae94a5bd/Modules/Filtering/ImageStatistics/wrapping

Upvotes: 1

Related Questions