hi Xavi: I would like to add a third party library and I have two questions about this:
1. I use gimias1.4.2 source, I would like to add elastix4.6 library as third party library for my plugin, elastix4.6 should be built with itk4.2 instead of the itk3.20 which is accompanied in the gimias1.4.2 source. Will there be conflict of using elastix4.6? need I also put itk4.2 libraries into third party directories? if this can not work, otherwise I will use elastix4.5 which can be built with itk3.20. 2. I followed the HowToCreateYourThirdParty page and add my own library from csnake, however, I can not see in visual studio that the thirdparty include directory being added. Currently, I manually added the include directory and the link directory into the visual studio, does it work if I doing this way? I have not tried yet, I just ask you in advance. Thank you very much. Alex 2012/6/11 Xavier Planes <[email protected]>: > Hi Alex, > > These days we are working on several project deliverables and on a > new release of GIMIAS-1.5. You can find more details here: > http://www.gimias.org/download/gimias-15 > > Regarding your questions: > 1. Read image properties: > > a. If using a Processor: > The best way to know the pixel type and the dimension is to > retrieve the vtk image from a DataEntity: > > Core::vtkImageDataPtr inputImage; > GetProcessingData( 0, inputImage ); > > inputImage->GetDimensions() > inputImage->GetSpacing(); > inputImage->GetOrigin(); > inputImage->GetScalarTypeAsString(); > > b. If using a CommandLinePlugin: You can use ITK directly. > You can see an example in GaussianBlurImageFilter.cxx > > 2. Retrieve 3D+T data: > > a. For a Processor you can read the documentation: > > https://sourceforge.net/apps/mediawiki/gimias/index.php?title=Extensible_Exe > cution_Component#3D.2BT_processing > > b. For a CommandLinePlugin: > > https://sourceforge.net/apps/mediawiki/gimias/index.php?title=HowToDevelopAC > ommandLinePlugin#3D_.2B_T_processing > > 3. Elastix: I've been in an introductory presentation about Elastix > some weeks ago and it was very interesting. However, I've never used it :(. > It will be really great to integrate this library in GIMIAS. If you are > integrating the source code of Elastix, I think you will not have any > problem to use the same ITK version used in GIMIAS. If you are using the > precompiled library, it could be more difficult. > > To integrate the precompiled library, it's very easy. You can take a > look at this tutorial: > > https://sourceforge.net/apps/mediawiki/gimias/index.php?title=HowToCreateYou > rThirdParty > > For the integration of Elastix, I'm thinking that it could be easier > to use a command line plugin, instead of a GIMIAS native plugin because a > command line plugin uses ITK directly. > > Best regards, > Xavi > > From: Zhijun Zhang [mailto:[email protected]] > Sent: lunes, 11 de junio de 2012 0:24 > To: Xavier Planes; [email protected] > Subject: Re: [Gimias-developers] help about the plugin > > hi Xavier: > > How are you these days? > I have read some of the tutorials and now I can write a little code to > have a two image registration plugin. > Now I would like to write an image sequence registration tool. I would > like to have the following problems: > > 1. for single image, if I open it in the GIMIAS menu file->open data, It > shows in the data tree area, > then how do I know the image pixel type, dimension? because I need to define > an itk registration method with > the template parameter of the pixel type and dimension. > > 2. If I open a 3D image sequences (lets say, ten analyze image or vtk > image), how do I know the number of frames in this sequence and how I can > get the pointer of each image frame in my processor functions? > > 3. I would like to call image registration functions in another library( > like elastix ) in my plugin code, is there easy ways to add this library? is > it necessary that the itk library that gimias based on and the itk elastix > based on are the same version? > > thank you very much. > > regards, > Alex > > ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Gimias-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gimias-developers
