Hi Larissa,

There are different formats available in Gimias you can choose the one you want 
to use in the processor using the function GetProcessingData(). Look at this 
page for further information on data entity type formats:

https://sourceforge.net/apps/mediawiki/gimias/index.php?title=Input_and_Output_handling_in_GIMIAS_Processors

In your particular case if you want to work with images you have mainly two 
options in Gimias:

itk::Image< pixelType, dimension> ::Pointer itkImage;
vtkSmartPointer< vtkImageData > vtkImage; // exactly the same as  
Core::VtkImageDataPtr

both libraries (itk and vtk) have their threshold filter ( in Gimias a lot of 
threshold filters using these basic ones have been implemented in some submenu 
of Tools see commandLinePlugins coming from Slicer3d)


An example of code is the SandboxPlugin where you have examples of how to use 
itk::Image.
In the template Plugin you create using the StartNewModule there is an example 
of how to get both a vtkImageData and a itk::Image.

I forward the message to the mailing list because I find it very interesting!

Chiara


-----Original Message-----
From: Larissa Hoffman [mailto:[email protected]] 
Sent: jueves, 10 de marzo de 2011 11:55
To: Chiara Riccobene
Subject: Image format in gimias and accessing the image

Hi Chiara, 

I got another question that is probably quite easy to answer... 
What format is the loaded image in Gimias in after I added it to the data tree 
and how can I access it? I tried to find an example in the existing source code 
but couldn't find one. Can you give me a tip on where to find one?
Just as additional information: I try to implement a thresholding algorithm 
that works in my own plugin. 

Thanks in advance
Larissa

-- 
Schon gehört? GMX hat einen genialen Phishing-Filter in die
Toolbar eingebaut! http://www.gmx.net/de/go/toolbar


------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Gimias-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gimias-developers

Reply via email to