[Insight-users] about itk and python

Gaëtan Lehmann gaetan.lehmann at jouy.inra.fr
Wed Jun 24 17:22:50 EDT 2009


Hi,

I've made a few measures for the upcoming wrapitk release.
They are available at http://code.google.com/p/wrapitk/wiki/Release030

They show a quite important improvement compared to the previous  
release (the one in ITK) for almost all the mesures.

Gaëtan


Le 17 juin 09 à 10:46, Julien Lamy a écrit :

> Lic. José M. Rodriguez Bacallao a écrit :
>> hi folks, I am new to vtk and itk and I begining to love all the
>> goodies of itk, right now, I'm triying to develop a dicom viewer with
>> itk, vtk and python (my preferred language) so, I have a couple of
>> questions to make.
>> 1- How about the quality of wrappers (WrapITK vs standard)
>
> After trying the three available wrappers (CSwig, WrapITK shipped  
> with ITK, and WrapITK from Google Code), I would definitely go with  
> WrapITK, preferably the Google Code version : they are much closer  
> to Python than the CSwig wrappers, and exploits more features of  
> Python (have a look at the Google Code page for some examples).
>
>> 2- How about memory consumption and load times of the wrappers.
>
> They have become fast : WrapITK is definitely an improvement over  
> CSwig, and the latest version of WrapITK takes this one step  
> further. As to memory usage, I haven't done any kind of benchmark.
>
>> 3- I need to read several DICOM files, from various modalities, how  
>> do
>> I read all of them if I need to now the image type first, for  
>> example:
>> import itk
>> image_type = itk.Image[itk.SS, 2]
>> file_name = 'IM66,dcm' #this is a CT image
>> reader = itk.ImageFileReader[image_type].New()
>> reader.SetFileName( file_name )
>> reader.Update()
>> what if I need to read a RGB dicom image?
>
> I haven't tried this, but you might take a look at the DICOM  
> examples from the ITK software guide (section 7.12.5) : create a  
> DICOM image IO, get the metadata, and, based on those metadata,  
> create your reader with the correct image type.
>
> -- 
> Julien
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.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/20090624/5a98ce68/attachment.pgp>


More information about the Insight-users mailing list