[Insight-users] Connect ITK with VTK Java
Grzegorz Toporek
top.grzechu at gmail.com
Wed Dec 8 18:43:44 EST 2010
Dear Gaëtan,
thanks for your answer.
Unfortunately option: WRAP_ITKVTK doesn't exist in new version of WrapITK,
even though it is mentioned in lots of posts/ tutorials I have found.
Strange...
As far as I have checked, this is because Java wrapping doesn't work well in
WrapITK project. There are several classes, such as: VTKImageExport,
VTKImageExportBase, VTKImageIO and many others that are wrongly wrapped,
giving strange output arguments (SWIGTYPE_p_void, SWIGTYPE_p_p_p_void_int
etc...). And all filters that are used to connect ITK with VTK (e.g
itkImageToVTKImageFilter.h) are based on those classes.
Additionally, building Java wrappers with WrapITK is broken in several
places. I took my a while to get rid of several errors during compilation.
That is why only Python language is supported by them.
Only good thing of WrapITK is that, they support new GDCM DICOM library that
is in new version of ITK. It works well as I have tested it.
Building External projects (e.g ItkVtkGlue) is also broken on Java.
What I am doing now to connect ITK with VTK in Java is... saving data into
raw, binary file and reading it with VTK. Which is a pain...
If somebody knows better solution please let me know.
Best regards,
Grzegorz
PS. Java wrappers for VTK works like a charm!!! Thank you for good job.
2010/12/8 Gaëtan Lehmann <gaetan.lehmann at jouy.inra.fr>
>
> Gregorz,
>
> I think there is a module like that in WrapITK on googlecode
>
>
> http://code.google.com/p/wrapitk/source/browse/#svn/branches/maint/Libraries/ItkVtk
>
> you have to turn on WRAP_ITKVTK when building WrapITK.
> I haven't tested it my self so I can't say for sure how it work.
>
> Hopefully, this code should be move to the external project you've cited in
> the next weeks or months.
>
> Gaëtan
>
>
>
> Le 7 déc. 10 à 22:43, Grzegorz Toporek a écrit :
>
> Hi all,
>>
>> does anyone knows how to connect ITK with VTK in Java?
>>
>> I have been working on it quite long and still no success.
>>
>>
>> Kind regards,
>> Gregorz
>>
>>
>> Hi everyone,
>>
>> does anybody has following files wrapped in Java?:
>>
>> itkImageToVTKImageFilter.h
>> itkImageToVTKImageFilter.txx
>>
>> I would like to connect my applications written both in ITK and VTK.
>>
>> Unfortunately, WrapITK supports only Python wrapping
>> (ExternalProjects/ItkVtkGlue/) and I do not know how to reimplement this to
>> support Java.
>>
>> Looking forward to your reply.
>>
>>
>> Kind regards,
>> Grzegorz
>>
>>
>> _____________________________________
>> 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 --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20101209/e40b3c96/attachment.htm>
More information about the Insight-users
mailing list