[ITK] ITK v4 & MedPy 0.2.2
Matt McCormick
matt.mccormick at kitware.com
Tue Jan 13 10:43:15 EST 2015
On Tue, Jan 13, 2015 at 10:37 AM, Didier Cassereau
<didier.cassereau at upmc.fr> wrote:
> On 13/01/2015 16:06, Matt McCormick wrote:
>> Hi Didier,
>>
>> Does this example work with your ITK Python installation?
>>
>> http://itk.org/ITKExamples/src/Filtering/Smoothing/ApplyMedianFilter/Documentation.html
>
> No problem with this test with Python
Good.
Maybe it is a problem with medpy.
>> Did you install WrapITK? Did you add add WrapITK.pth to your sys.path?
>
> Do you mean the WrapITK that can be found in the development files of ITK?
> My compilation options of ITK are:
> INSTALL_WRAP_ITK_COMPATIBILITY: ON
> ITKV3_COMPATIBILITY: ON
> ITK_WRAP_PYTHON: ON
> ITK_WRAP_SWIGINTERFACE: ON
> ITK_WRAP_*: (*=double, float, ...) some are ON and some are OFF,
> unchanged from the default
>
> And no I did not change sys.path as I thought WrapITK would have been
> part of ITK itself.
WrapITK can be installed or WrapITK.pth can be added to sys.path.
Either way, Python must be able to find not only the .py files, but
also the DLL Python modules and ITK libraries.
HTH,
Matt
More information about the Community
mailing list