Hola,

Después de añadir en el archivo .h

#include <gdcmFile.h>
typedef boost::shared_ptr< gdcm::ValEntry > GdcmValEntryPtr;

y la definición gdcm::DocEntry* entry = NULL;

me salen varios errores
el primero es

Error    8    error C2514: 'gdcm::ValEntry' : la clase no tiene
constructores
c:\Code\src\VPHTK_1_4\vphtk_src\plugins\QuantiDopaPlugin\widgets\QuantiDopaPluginPreProjectionsPanelWidget\QuantiDopaPluginPreProjectionsPanelWidget.cpp
73

No se a que es debido este error.

Gracias,
Aida


2012/7/11 Yves Martelli <yves.marte...@upf.edu>

> Hola Aida,
> Para leer ficheros DICOM usamos la librería gdcm incluido en ITK.
> El código para obtener la valor (value) de un tag en un fichero DICOM
> puede ser:
>
> #include <itkGDCMImageIO.h>
>
> gdcm::File gdcmFile;
> gdcmFile.SetFileName( filePath );
> gdcmFile.Load();
>
> entry = gdcmFile.GetDocEntry(0x0008, 0x0090);
> if ( entry )
> {
>   GdcmValEntryPtr valEntry;
>   valEntry.reset( new gdcm::ValEntry( entry ) );
>   valEntry->SetValue(
> gdcmFile.GetEntryForcedAsciiValue(timeTagId.m_group,
> timeTagId.m_element) );
>   value = valEntry.get();
> }
>
> Dime se te va.
> Saludos,
> Yves
>
> 2012/7/11 Aida Ninyerola <aida.ninyer...@gmail.com>:
> > Hi!
> >
> > Thank you for your response.
> >
> > I think the best solution for our problem is the first one you have
> proposed.
> >
> > Which are the firsts steps we must do?
> >
> > Thanks for your help!
> > Aida
> >
> > 2012/7/10, Xavier Planes <xavier.pla...@upf.edu>:
> >> Hi Aida,
> >>
> >>       When reading DICOM data, the DICOM tags are not stored in the
> >> imported DataEntity. There are a lot of tags and stored per slice, so It
> >> will be difficult to retrieve these data in a structured way for all the
> >> cases. There are several possible solutions to your problem:
> >>       1. Load the file directly in your plugin. We can store the
> filename
> >> path of the DICOM data in the DataEntity. Your processor can read the
> file
> >> using dcmAPI and retrieve the tags you need.
> >>       2. Add an "import tags" button/flag in the DICOM Plugin: We could
> >> add a button/flag in the DICOM Plugin to import the DICOM tags from the
> >> current slice and create a DataEntity with all this information. For
> >> example
> >> using the DICOM tags browser widget.
> >>
> >>       Please let me know what do you think is the best solution for your
> >> problem.
> >>
> >> Best regards,
> >> Xavi
> >>
> >> From: Aida Ninyerola [mailto:aida.ninyer...@gmail.com]
> >> Sent: lunes, 09 de julio de 2012 14:42
> >> To: gimias-developers@lists.sourceforge.net
> >> Subject: [Gimias-developers] reading DICOM tags
> >>
> >> Hello,
> >>
> >> I need to read some tags from the dicom file loaded by the user. I need
> >> some
> >> of the information to proccess the images.
> >> Is there any way to have this information from the dicom tags in my
> plugin?
> >>
> >> Thanks,
> >> Aida
> >>
> >>
> >
> >
> ------------------------------------------------------------------------------
> > 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
> > Gimias-developers@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gimias-developers
>
------------------------------------------------------------------------------
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
Gimias-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gimias-developers

Reply via email to