[Insight-users] Anyone could give me any information about JAVA and ITK ???

Luis Ibanez luis.ibanez at kitware.com
Wed Oct 27 16:02:35 EDT 2004



Hi Marcelo,


Question 1: Why i dont have all c++ class converting in JAVA  ??

Answer: Because ITK is a Generic Programming library and it is
         implemented using C++ templates. The number of C++ classes
         in ITK is therefore infinite. For example, you can
         instantiate the ITK image class for as many pixel types
         as you want and as many dimensions as you want.

         In order to make a reasonable wrapped layer, we selected
         a subset of types that are commonly used, and we have been
         responding to user's requests for wrapping specific classes
         they need.   Of course, nothing prevents you from adding
         new classes to the wrapping, you can do this by editing
         the files in the directory:

                     Insight/Wrapping/CSwig

         Note that, in practice, you don't want to go to that low
         level granularity. Instead, for a specific application,
         you want to create a C++ class that encapsulates an ITK
         pipeline. Then, you wrap this specialized C++ class for
         being used from Java.




Question 2: I can convert c++ class in JAVA using CableSwing
             and cmake ??


Answer:    Yes, those are the tools that we use for wrapping
            ITK classes. You can also apply them for any class
            of your own.



Question 3:   Why i have itkImageFileReaderD2.java and
               itkImageFileReaderD3.java, they do the
               same thing ???

Answer:  itkImageFileReaderD2 reads 2D images.
          itkImageFileReaderD3 reads 3D images.

          You must read the first two chapters of the
          ITK Software Guide

             http://www.itk.org/ItkSoftwareGuide.pdf

          and the first two sessions of the Tutorials

              http://www.itk.org/HTML/Tutorials.htm




Question 4:  Where i can find any documentation about wrap c++
              to java ???

Answer:  There is no specific documentation on the wrapping
          process at this point. Your best option is to follow
          the examples in the Insight/Wrapping/CSwig directory.

          You may find useful to read the Swig tutorial

                 http://www.swig.org/tutorial.html

          and Swig documentation resources

                 http://www.swig.org/doc.html




Please let us know if you have further questions.


     Thanks



        Luis



-----------------------
Oliveira Marcelo wrote:

> Hi users !!!!
> 
> Im desperate to use ITK and JAVA and entire lost. But
> i can undestand how they work together, my questions
> are:
> 
> 1 - Why i dont have all c++ class converting in JAVA
> ??
> 
> 2 - I can convert c++ class in JAVA using CableSwing
> and cmake ??
> 
> 3 - Why i have itkImageFileReaderD2.java and
> itkImageFileReaderD3.java, they do the same thing ???
> 
> 4 - Where i can find any documentation about wrapp c++
> to java ???
> 
> 
> 
> tank u a lot !!!!
>  
> 
> 
> 	






More information about the Insight-users mailing list