[Insight-users] Troubles wrapping some classes in Java
Gaëtan Lehmann
gaetan.lehmann at jouy.inra.fr
Mon Nov 23 03:32:50 EST 2009
Le 22 nov. 09 à 22:04, Luis Ibanez a écrit :
> Hi Otmane,
>
> Thanks for the detailed description of the problem.
>
> This class looks very similar in structure to the derived classes
> of the BinaryFunctorFilter.
>
> It should be possible to wrap it the same way that we are wrapping
> the itkAddImageFilter in
>
> Insight/Wrapping/WrapITK/Modules/PixelMath/
> wrap_itkAddImageFilter.cmake
>
> with something like
>
> WRAP_CLASS("itk::AddImageFilter" POINTER_WITH_SUPERCLASS)
there is also the option POINTER_WITH_2_SUPERCLASSES, which may help
in that case.
Gaëtan
> WRAP_IMAGE_FILTER_SCALAR(3)
> END_WRAP_CLASS()
>
> It seems that what is missing to be wrapped in your case
> is an instance of the Neighborhood iterator...
>
> Could you post to the list the full original error message that you
> get
> from the compilation / wrapping process ?
>
> Thanks
>
>
> Luis
>
>
> ---------------------------------------------------------------------------------------------------------
> On Tue, Nov 17, 2009 at 7:07 AM, Otmane Lahlou <otmane.lahlou at c-
> s.fr> wrote:
>> Hi ,
>>
>> I have some troubles wrapping some particular classes.
>>
>> Here is the scheme : Im' trying to wrap a class A that implements a
>> functor.
>> The class A is inherited form a class B wich is templated over the
>> Functor
>> type.
>>
>> template<T> class A : public B<....,TFunctor>
>>
>> Here is the class actually :
>> http://www.orfeo-toolbox.org/doxygen-current/otbLHMIChangeDetector_8h_source.html
>> if you can
>> have a look.
>>
>> I tried to wrap the class A using POINTER_WITH_SUPERCLASS but i
>> have a
>> compilation error :
>> cannot find symbol :
>> variable
>> SWIGTYPE_p_otb__Functor__LHMI_itk__ConstNeighborhoodIteratorT_otb__ImageT_float_2u_t_itk__ZeroFluxNeumannBoundaryConditionT__
>> (the last sentence again) __float_t
>>
>> This parent class B defines some methods that i need, so i have to
>> wrap
>> this class too.
>> The problem is that the functor type is defined in the class A and
>> i don't
>> know how to specify the TFunctor.
>>
>>
>> Thank you.
>>
>> Otmane
>>
>>
>>
>> --
>>
>> Otmane Lahlou - Ingénieur d'études et développement - Traitement
>> d'images
>> CS Systèmes d'Information - Division ESPACE
>> Département Information Géographique & Image
>> Phone: ++33 5 61 17 62 87
>> Email: otmane.lahlou at c-s.fr <mailto:otmane.lahlou at c-s.fr>
>> _____________________________________
>> 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.html
>>
>> 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
>>
> _____________________________________
> 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.html
>
> 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
--
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66 fax: 01 34 65 29 09
http://voxel.jouy.inra.fr http://www.itk.org
http://www.mandriva.org http://www.bepo.fr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 203 bytes
Desc: Ceci est une signature ?lectronique PGP
URL: <http://www.itk.org/pipermail/insight-users/attachments/20091123/456bb4d8/attachment-0001.pgp>
More information about the Insight-users
mailing list