[Insight-users] Update method missing in python wrapping

Bradley Lowekamp blowekamp at mail.nih.gov
Wed Apr 3 08:31:35 EDT 2013


Hello David,

My initial thought is that all of the superclasses are not wrapped in WrapITK with the required template parameters.

Brad

On Apr 2, 2013, at 6:23 PM, David Fuentes <fuentesdt at gmail.com> wrote:

> 
> Hi,
> 
> I'm attempting to add a python wrapping for the MaskFeaturePointSelectionFilter class using:
> 
> SCRGP2$ cat Modules/Filtering/ImageFeature/wrapping/itkMaskFeaturePointSelectionFilter.wrap 
> itk_wrap_class("itk::MaskFeaturePointSelectionFilter" POINTER_WITH_SUPERCLASS)
>   itk_wrap_image_filter("${WRAP_ITK_REAL}" 1 3)
> itk_end_wrap_class()
> 
> everything builds fine, but the Update method is missing ?
> I need to run update to get the feature points output.
> How do i expose the Update method ?
> 
> In [2]: import itk  
> 
> In [3]: ScalarImageType  = itk.Image.F3
> 
> In [4]: featureSelectionFilter = itk.MaskFeaturePointSelectionFilter[ScalarImageType].New()
> 
> In [5]: featureSelectionFilter.Update()
> ---------------------------------------------------------------------------
> AttributeError                            Traceback (most recent call last)
> /workarea/fuentes/github/<ipython-input-5-3f49bc774a25>
> in <module>()
> ----> 1 featureSelectionFilter.Update()
> 
> AttributeError: 'itkMaskFeaturePointSelectionFilterIF3' object has no
> attribute 'Update'
> 
> 
> 
> 
> thanks,
> David
> _____________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> 
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
> 
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users



More information about the Insight-users mailing list