InsightSoftwareConsortium / ITKIsotropicWavelets

External Module for ITK, implementing Isotropic Wavelets and Riesz Filter for multiscale phase analysis.
Apache License 2.0
13 stars 11 forks source link

ENH: Python, wrap utilities free functions intro a struct #145

Closed phcerdan closed 3 years ago

phcerdan commented 3 years ago

There are no mechanisms with ITK SWIG macros to wrap free functions.

As a workaround, we use a struct with static function members, and wrap it.

The usage in python is:

import itk
itk.IsotropicWaveletsUtilities.IndexToLevelBandSteerablePyramid(0, 2, 2)

Fix #56

jhlegarreta commented 3 years ago

Awesome @phcerdan !!