[Insight-users] Update method missing in python wrapping

David Fuentes fuentesdt at gmail.com
Wed Apr 3 11:57:48 EDT 2013


works! thanks!

SCRGP2$ cat
Modules/Filtering/ImageFeature/wrapping/itkMaskFeaturePointSelectionFilter.wrap
itk_wrap_class("itk::MaskFeaturePointSelectionFilter"
POINTER_WITH_2_SUPERCLASSES)
  itk_wrap_image_filter("${WRAP_ITK_REAL}" 1 3)
itk_end_wrap_class()





On Wed, Apr 3, 2013 at 8:25 AM, David Fuentes <fuentesdt at gmail.com> wrote:

> Thanks! that makes sense. I had a similar problem when using POINTER
> instead of POINTER_W_SUPERCLASS.
>
> I saw a POINTER_W_2_SUPERCLASSES macro, but not sure if a
> POINTER_W_5_SUPERCLASSES was available.
>
> I'll give it a try.
> thanks again!
>
> df
>
>
> On Wed, Apr 3, 2013 at 7:31 AM, Bradley Lowekamp <blowekamp at mail.nih.gov>wrote:
>
>> 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
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20130403/f188a354/attachment.htm>


More information about the Insight-users mailing list