[Dcmlib] Fwd: [Gdcm2] Fwd: Re: Reading sequences

Eduardo - Yahoo camargo_rh at yahoo.com.br
Tue Feb 2 15:02:20 CET 2010


Hi Tom!

Thank you for your help but I had seen it before and I did exactly like
shown in the examples.
In other message, Jean said that is a bug of gdcm 1.2.
Do you know how I can solve it? If you wish, I can provide my test files and
codes.



2010/2/1 Tom Marynowski <lordglub at gmail.com>

> look in example exExtractDicomTags.cxx and/or exExtractTag.cxx in gdcm
> source code
>
> It show how to extract some tag value.it could help you
>
> 2010/2/1 Eduardo - Yahoo <camargo_rh at yahoo.com.br>
>
>> Somebody can help me??
>>
>> I don`t know what I can do to solve it.
>>
>>
>>
>>
>>
>> ---------- Forwarded message ----------
>> From: Tom Marynowski <lordglub at gmail.com>
>> Date: 2010/1/29
>> Subject: Re: [Gdcm2] Fwd: Re: Reading sequences
>> To: Eduardo - Yahoo <camargo_rh at yahoo.com.br>
>>
>>
>> Hello
>>
>> as Mathieu say: you will have more chance with GDCM1 mailling list.
>>
>> http://www.creatis.insa-lyon.fr/mailman/listinfo/dcmlib
>>
>> Tom
>>
>>
>>
>>
>>
>>
>>
>> 2010/1/28 Eduardo - Yahoo <camargo_rh at yahoo.com.br>
>>
>> I'd appreciate if anyone could help me in solve this trouble.
>>>
>>>
>>>
>>>
>>>
>>> ---------- Forwarded message ----------
>>> From: <eduardo.ecamargo at gmail.com>
>>> Date: 2010/1/28
>>> Subject: Re: Re: [Gdcm2] Reading sequences
>>> To: Eduardo - Yahoo <camargo_rh at yahoo.com.br>
>>> Cc: jpr at creatis.insa-lyon.fr, Mathieu Malaterre <
>>> mathieu.malaterre at gmail.com>
>>>
>>>
>>> Hi, Jean!
>>>
>>>
>>>
>>> Excuse my insistence but I wonder if could see my file. I'm trying to
>>> cast but I can not.
>>>
>>>
>>>
>>> thanks,
>>> Eduardo
>>>
>>>
>>>
>>> Em 27/01/2010 16:03, Eduardo - Yahoo <camargo_rh at yahoo.com.br> escreveu:
>>>
>>> > Hi,
>>> >
>>> > These two cast woks
>>> >
>>> > gdcm::DocEntry *d;
>>> >
>>> > gdcm::ContentEntry* valEntry = dynamic_castContentEntry *>(d);
>>> > gdcm::ValEntry* valEntry = dynamic_cast(d);
>>> >
>>> >
>>> >
>>> > but not this
>>> >
>>> > gdcm::BinEntry* binEntry = dynamic_cast(d);
>>>
>>> >
>>> >
>>> > If you have another idea....
>>> > You could look at the link you sent when you are on your computer?
>>> >
>>> >
>>> >
>>> > Sorry for my english and
>>> > Thanks for your help.
>>> >
>>> > Eduardo
>>> >
>>> >
>>> >
>>> >
>>> > 2010/1/27 jpr at creatis.insa-lyon.fr>
>>> >
>>> > Hi,
>>> >
>>> >
>>> >
>>> > The trouble comes from the fact that the values you want to acces are
>>> 'FD'
>>> >
>>> > value representation, that's not printable 'as is'.
>>> >
>>> >
>>> >
>>> > I see you're using gdcm1.2 (the one used by itk)
>>> >
>>> > The trouble is solved in a transparent way in gdcm1.3 (DON'T upgrade,
>>> >
>>> > since a lot of stuff was modified in the API)
>>> >
>>> >
>>> >
>>> > Try to use a 'BinEntry', instead of a 'ValEntry' and cast the result of
>>> >
>>> > GetBinArea() as a float*
>>> >
>>> >
>>> >
>>> > (I'm not on my PC, I cannot tell you much more, right now).
>>> >
>>> >
>>> >
>>> > HTH
>>> >
>>> >
>>> >
>>> > --
>>> >
>>> > Jean-Pierre Roux
>>> >
>>> > Creatis CNRS UMR 5220, INSERM U630
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> > > Hi, Jean,
>>> >
>>> > >
>>> >
>>> > > Thanks for your help.
>>> >
>>> > > You could download a sample in this link
>>> >
>>> >
>>> > >
>>> http://hemo01a.lncc.br/~eduardo/ivushttp://hemo01a.lncc.br/%7Eeduardo/ivus<http://hemo01a.lncc.br/%7Eeduardo/ivushttp://hemo01a.lncc.br/%7Eeduardo/ivus>
>>> >(26
>>>
>>> >
>>> >
>>> >
>>> > > MB)
>>> >
>>> > >
>>> >
>>> > >
>>> >
>>> > >
>>> >
>>> > >
>>> >
>>> > >
>>> >
>>> > > 2010/1/27 jpr at creatis.insa-lyon.fr>
>>> >
>>> > >
>>> >
>>> > >> Hi, Eduardo,
>>> >
>>> > >>
>>> >
>>> > >> Could you send me a sample of your file, so I can try to find what's
>>> >
>>> > >> wrong
>>> >
>>> > >> with gdm 1.
>>> >
>>> > >>
>>> >
>>> > >> Jean-Pierre Roux
>>> >
>>> > >> (was developper of gdcm 1.x)
>>> >
>>> > >>
>>> >
>>> > >> Thx
>>> >
>>> > >>
>>> >
>>> > >> --
>>> >
>>> > >> Jean-Pierre Roux
>>> >
>>> > >> Creatis CNRS UMR 5220, INSERM U630
>>>
>>> >
>>> > >>
>>> >
>>> > >> > I am using this code below. What is wrong with tags 0018|602c and
>>> >
>>> > >> > 0018|602e?
>>> >
>>> > >> > When I use other program ( Sante DICOM Viewer FREE) for open the
>>> same
>>> >
>>> > >> file
>>> >
>>> > >> > these tags content 0.001752.
>>> >
>>> > >> >
>>> >
>>> > >> > I am using ITK 3.16 and gdcm 1.X.
>>> >
>>> > >> >
>>> >
>>> > >> >
>>> >
>>> > >> >
>>> >
>>> > >> > typedef gdcm::File DICOMFile* f1 = NULL;
>>> >
>>> > >> > f1 = (*this->GetFileList())[0];
>>> >
>>> > >> >
>>> >
>>> > >> >
>>> >
>>> > >> > gdcm::DocEntry *e = f1->GetDocEntry(0x0018,0x6011);
>>> >
>>> > >> >     if ( !e )
>>> >
>>> > >> >     {
>>> >
>>> > >> >        std::cout
>>> > >> found"
>>> >
>>> > >> >
>>> > >> >     }
>>> >
>>> > >> >
>>> >
>>> > >> >     gdcm::SeqEntry *s = dynamic_cast(e);
>>> >
>>> > >> >     if ( !s )
>>> >
>>> > >> >    {
>>> >
>>> > >> >        std::cout
>>> > >> >
>>> > >> >     }
>>> >
>>> > >> >
>>> >
>>> > >> >     gdcm::DocEntry *d;
>>> >
>>> > >> >     gdcm::SQItem *tmpSI = s->GetFirstSQItem();  // For all the
>>> SQItems
>>> >
>>> > >> >     std::string key;
>>> >
>>> > >> >
>>> >
>>> > >> >   //  cout GetNumberOfSQItems()
>>> > >> >
>>> >
>>> > >> >     while(tmpSI)
>>> >
>>> > >> >     {
>>> >
>>> > >> >       d = tmpSI->GetFirstEntry();
>>> >
>>> > >> >
>>> >
>>> > >> >       while(d)
>>> >
>>> > >> >         {
>>> >
>>> > >> >         gdcm::ContentEntry* valEntry = dynamic_castContentEntry
>>> >
>>> > >> > *>(d);
>>> >
>>> > >> >
>>> >
>>> > >> >         key = d->GetKey();
>>> >
>>> > >> >
>>> >
>>> > >> >         cout GetValue()
>>> > >> >         cout GetName()
>>> > >> >         cout GetVR()
>>> > >> >         cout GetVM()
>>> > >> >         cout GetLength()
>>> > >> >         cout GetFullLength()
>>> >
>>> > >> >
>>> > >> >         cout GetReadLength()
>>> >
>>> > >> >
>>> > >> >         cout IsImplicitVR()
>>> >
>>> > >> >
>>> > >> >         cout IsVRUnknown()
>>> >
>>> > >>
>>> > >> >         cout
>>> > >> >
>>> >
>>> > >> >
>>> >
>>> > >> >         if(key.compare("0018|602c") == 0)
>>> >
>>> > >> >           {
>>> >
>>> > >> >           valEntry->SetValue("1.1234556");
>>> >
>>> > >> >           cout GetValue()
>>> > >> >           cout GetName()
>>> > >> >           cout GetVR()
>>> > >> >           cout GetVM()
>>> > >> >           cout GetLength()
>>> > >> >           cout GetFullLength()
>>> >
>>> > >> >
>>> > >> >           cout GetReadLength()
>>> >
>>> > >> >
>>> > >> >           cout IsImplicitVR()
>>> >
>>> > >> >
>>> > >> >           cout IsVRUnknown()
>>> >
>>> > >> >
>>> > >> >           cout
>>> > >> >           }
>>> >
>>> > >> >
>>> >
>>> > >> >         d = tmpSI->GetNextEntry();
>>> >
>>> > >> >         }
>>> >
>>> > >> >
>>> >
>>> > >> >       tmpSI=s->GetNextSQItem();
>>> >
>>> > >> >       }
>>> >
>>> > >> >
>>> >
>>> > >> >
>>> >
>>> > >> >
>>> >
>>> > >> > *
>>> >
>>> > >> > Output:*
>>> >
>>> > >> >
>>> >
>>> > >> >
>>> >
>>> > >> > 0018|6012 : 1
>>> >
>>> > >> >     Name: Region Spatial Format
>>> >
>>> > >> >     VR: US
>>> >
>>> > >> >     VM: 1
>>> >
>>> > >> >     Length: 2
>>> >
>>> > >> >     FullLength: 10
>>> >
>>> > >> >     ReadLength: 2
>>> >
>>> > >> >     IsImplicitVR: 0
>>> >
>>> > >> >     IsVRUnknown: 0
>>> >
>>> > >> >
>>> >
>>> > >> > 0018|6014 : 1
>>> >
>>> > >> >     Name: Region Data Type
>>> >
>>> > >> >     VR: US
>>> >
>>> > >> >     VM: 1
>>> >
>>> > >> >     Length: 2
>>> >
>>> > >> >     FullLength: 10
>>> >
>>> > >> >     ReadLength: 2
>>> >
>>> > >> >     IsImplicitVR: 0
>>> >
>>> > >> >     IsVRUnknown: 0
>>> >
>>> > >> >
>>> >
>>> > >> > 0018|6016 : 0
>>> >
>>> > >> >     Name: Region Flags
>>> >
>>> > >> >     VR: UL
>>> >
>>> > >> >     VM: 1
>>> >
>>> > >> >     Length: 4
>>> >
>>> > >> >     FullLength: 12
>>> >
>>> > >> >     ReadLength: 4
>>> >
>>> > >> >     IsImplicitVR: 0
>>> >
>>> > >> >     IsVRUnknown: 0
>>> >
>>> > >> >
>>> >
>>> > >> > 0018|6018 : 0
>>> >
>>> > >> >     Name: Region Location Min X0
>>> >
>>> > >> >     VR: UL
>>> >
>>> > >> >     VM: 1
>>> >
>>> > >> >     Length: 4
>>> >
>>> > >> >     FullLength: 12
>>> >
>>> > >> >     ReadLength: 4
>>> >
>>> > >> >     IsImplicitVR: 0
>>> >
>>> > >> >     IsVRUnknown: 0
>>> >
>>> > >> >
>>> >
>>> > >> > 0018|601a : 0
>>> >
>>> > >> >     Name: Region Location Min Y0
>>> >
>>> > >> >     VR: UL
>>> >
>>> > >> >     VM: 1
>>> >
>>> > >> >     Length: 4
>>> >
>>> > >> >     FullLength: 12
>>> >
>>> > >> >     ReadLength: 4
>>> >
>>> > >> >     IsImplicitVR: 0
>>> >
>>> > >> >     IsVRUnknown: 0
>>> >
>>> > >> >
>>> >
>>> > >> > 0018|601c : 511
>>> >
>>> > >> >     Name: Region Location Max X1
>>> >
>>> > >> >     VR: UL
>>> >
>>> > >> >     VM: 1
>>> >
>>> > >> >     Length: 4
>>> >
>>> > >> >     FullLength: 12
>>> >
>>> > >> >     ReadLength: 4
>>> >
>>> > >> >     IsImplicitVR: 0
>>> >
>>> > >> >     IsVRUnknown: 0
>>> >
>>> > >> >
>>> >
>>> > >> > 0018|601e : 511
>>> >
>>> > >> >     Name: Region Location Max Y1
>>> >
>>> > >> >     VR: UL
>>> >
>>> > >> >     VM: 1
>>> >
>>> > >> >     Length: 4
>>> >
>>> > >> >     FullLength: 12
>>> >
>>> > >> >     ReadLength: 4
>>> >
>>> > >> >     IsImplicitVR: 0
>>> >
>>> > >> >     IsVRUnknown: 0
>>> >
>>> > >> >
>>> >
>>> > >> > 0018|6024 : 3
>>> >
>>> > >> >     Name: Physical Units X Direction
>>> >
>>> > >> >     VR: US
>>> >
>>> > >> >     VM: 1
>>> >
>>> > >> >     Length: 2
>>> >
>>> > >> >     FullLength: 10
>>> >
>>> > >> >     ReadLength: 2
>>> >
>>> > >> >     IsImplicitVR: 0
>>> >
>>> > >> >     IsVRUnknown: 0
>>> >
>>> > >> >
>>> >
>>> > >> > 0018|6026 : 3
>>> >
>>> > >> >     Name: Physical Units Y Direction
>>> >
>>> > >> >     VR: US
>>> >
>>> > >> >     VM: 1
>>> >
>>> > >> >     Length: 2
>>> >
>>> > >> >     FullLength: 10
>>> >
>>> > >> >     ReadLength: 2
>>> >
>>> > >> >     IsImplicitVR: 0
>>> >
>>> > >> >     IsVRUnknown: 0
>>> >
>>> > >> >
>>> >
>>> > >> > 0018|602c :
>>> >
>>> > >> >     Name: Physical Delta X
>>> >
>>> > >> >     VR: FD
>>> >
>>> > >> >     VM: 1
>>> >
>>> > >> >     Length: 8
>>> >
>>> > >> >     FullLength: 16
>>> >
>>> > >> >     ReadLength: 8
>>> >
>>> > >> >     IsImplicitVR: 0
>>> >
>>> > >> >     IsVRUnknown: 0
>>> >
>>> > >> >
>>> >
>>> > >> > 0018|602c : 1.1234556
>>> >
>>> > >> >     Name: Physical Delta X
>>> >
>>> > >> >     VR: FD
>>> >
>>> > >> >     VM: 1
>>> >
>>> > >> >     Length: 10
>>> >
>>> > >> >     FullLength: 16
>>> >
>>> > >> >     ReadLength: 8
>>> >
>>> > >> >     IsImplicitVR: 0
>>> >
>>> > >> >     IsVRUnknown: 0
>>> >
>>> > >> >
>>> >
>>> > >> > 0018|602e :
>>> >
>>> > >> >
>>> >
>>> > >> >
>>> >
>>> > >> >
>>> >
>>> > >> >
>>> >
>>> > >> >
>>> >
>>> > >> >
>>> >
>>> > >> >
>>> >
>>> > >> >
>>> >
>>> > >> >
>>> >
>>> > >> >
>>> >
>>> > >> > 2010/1/25 Eduardo - Yahoo camargo_rh at yahoo.com.br>
>>> >
>>> > >> >>
>>> >
>>> > >> >> Ok, but where is the GDCM 1.x mailing list?
>>> >
>>> > >> >>
>>> >
>>> > >> >>
>>> >
>>> > >> >>
>>> >
>>> > >> >>
>>> >
>>> > >> >> 2010/1/25 Mathieu Malaterre mathieu.malaterre at gmail.com>
>>> >
>>> > >> >>>
>>> >
>>> > >> >>> I think you will have more chance on the GDCM 1.x mailing list
>>> (see
>>> >
>>> > >> >>> FAQ)
>>> >
>>> > >> >>>
>>> >
>>> > >> >>> HTH
>>> >
>>> > >> >>>
>>> >
>>> > >> >>> On Mon, Jan 25, 2010 at 5:06 PM, Eduardo - Yahoo
>>> >
>>> > >> >>> camargo_rh at yahoo.com.br> wrote:
>>> >
>>> > >> >>> > Hi,
>>> >
>>> > >> >>> >
>>> >
>>> > >> >>> > I have a set of Ultra sound files and I would like to read
>>> >
>>> > >> sequence
>>> >
>>> > >> > tags for
>>> >
>>> > >> >>> > to retrieve the pixelSpacing, for example. How will I do it?
>>> >
>>> > >> >>> > I am using ITK3.18 and gdcm 1.X.
>>> >
>>> > >> >>> >
>>> >
>>> > >> >>> >
>>> >
>>> > >> >>> > --
>>> >
>>> > >> >>> > Atenciosamente,
>>> >
>>> > >> >>> >
>>> >
>>> > >> >>> > Eduardo Camargo
>>> >
>>> > >> >>> > Analista de Sistemas
>>> >
>>> > >> >>> > HeMoLab - http://hemolab.lncc.br/equipe/desenv/eduardo.htm
>>> >
>>> > >> >>> > Laboratório Nacional de Computação Científica - LNCC
>>> >
>>> > >> >>> >
>>> >
>>> > >> >>> >
>>> >
>>> > >> >
>>> >
>>> > >>
>>> ------------------------------------------------------------------------------
>>> >
>>> > >> >>> > Throughout its 18-year history, RSA Conference consistently
>>> >
>>> > >> attracts
>>> >
>>> > >> > the
>>> >
>>> > >> >>> > world's best and brightest in the field, creating
>>> opportunities
>>> >
>>> > >> for
>>> >
>>> > >> >>> > Conference
>>> >
>>> > >> >>> > attendees to learn about information security's most important
>>> >
>>> > >> issues
>>> >
>>> > >> >>> > through
>>> >
>>> > >> >>> > interactions with peers, luminaries and emerging and
>>> established
>>> >
>>> > >> > companies.
>>> >
>>> > >> >>> > http://p.sf.net/sfu/rsaconf-dev2dev
>>> >
>>> > >> >>> > _______________________________________________
>>> >
>>> > >> >>> > Gdcm-developers mailing list
>>> >
>>> > >> >>> > Gdcm-developers at lists.sourceforge.net
>>> >
>>> > >> >>> > https://lists.sourceforge.net/lists/listinfo/gdcm-developers
>>> >
>>> > >> >>> >
>>> >
>>> > >> >>> >
>>> >
>>> > >> >>>
>>> >
>>> > >> >>>
>>> >
>>> > >> >>>
>>> >
>>> > >> >>> --
>>> >
>>> > >> >>> Mathieu
>>> >
>>> > >> >>
>>> >
>>> > >> >>
>>> >
>>> > >> >>
>>> >
>>> > >> >> --
>>> >
>>> > >> >> Atenciosamente,
>>> >
>>> > >> >>
>>> >
>>> > >> >> Eduardo Camargo
>>> >
>>> > >> >> Analista de Sistemas
>>> >
>>> > >> >> HeMoLab - http://hemolab.lncc.br/equipe/desenv/eduardo.htm
>>> >
>>> > >> >> Laboratório Nacional de Computação Científica - LNCC
>>> >
>>> > >> >
>>> >
>>> > >> >
>>> >
>>> > >> >
>>> >
>>> > >> > --
>>> >
>>> > >> > Atenciosamente,
>>> >
>>> > >> >
>>> >
>>> > >> > Eduardo Camargo
>>> >
>>> > >> > Analista de Sistemas
>>> >
>>> > >> > HeMoLab - http://hemolab.lncc.br/equipe/desenv/eduardo.htm
>>> >
>>> > >> > Laboratório Nacional de Computação Científica - LNCC
>>> >
>>> > >> >
>>> >
>>> > >>
>>> ------------------------------------------------------------------------------
>>> >
>>> > >> > The Planet: dedicated and managed hosting, cloud storage,
>>> colocation
>>> >
>>> > >> > Stay online with enterprise data centers and the best network in
>>> the
>>> >
>>> > >> > business
>>> >
>>> > >> > Choose flexible plans and management services without long-term
>>> >
>>> > >> contracts
>>> >
>>> > >> > Personal 24x7 support from experience hosting pros just a phone
>>> call
>>> >
>>> > >> away.
>>> >
>>> > >> >
>>> >
>>> > >>
>>> http://p.sf.net/sfu/theplanet-com_______________________________________________
>>>
>>> >
>>> > >> > Gdcm-developers mailing list
>>> >
>>> > >> > Gdcm-developers at lists.sourceforge.net
>>> >
>>> > >> > https://lists.sourceforge.net/lists/listinfo/gdcm-developers
>>> >
>>> > >> >
>>> >
>>> > >>
>>> >
>>> > >>
>>> >
>>> > >
>>> >
>>> > >
>>> >
>>> > > --
>>> >
>>> > > Atenciosamente,
>>> >
>>> > >
>>> >
>>> > > Eduardo Camargo
>>> >
>>> > > Analista de Sistemas
>>> >
>>> > > HeMoLab - http://hemolab.lncc.br/equipe/desenv/eduardo.htm
>>> >
>>> > > Laboratório Nacional de Computação Científica - LNCC
>>> >
>>> > >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> > --
>>> > Atenciosamente,
>>> >
>>> > Eduardo Camargo
>>> > Analista de Sistemas
>>> > HeMoLab - http://hemolab.lncc.br/equipe/desenv/eduardo.htm
>>> >
>>> > Laboratório Nacional de Computação Científica - LNCC
>>> >
>>>
>>>
>>>
>>> --
>>> Atenciosamente,
>>>
>>> Eduardo Camargo
>>> Analista de Sistemas
>>> HeMoLab - http://hemolab.lncc.br/equipe/desenv/eduardo.htm
>>> Laboratório Nacional de Computação Científica - LNCC
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> The Planet: dedicated and managed hosting, cloud storage, colocation
>>> Stay online with enterprise data centers and the best network in the
>>> business
>>> Choose flexible plans and management services without long-term contracts
>>> Personal 24x7 support from experience hosting pros just a phone call
>>> away.
>>> http://p.sf.net/sfu/theplanet-com
>>> _______________________________________________
>>> Gdcm-developers mailing list
>>> Gdcm-developers at lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gdcm-developers
>>>
>>>
>>
>>
>>
>> --
>> Atenciosamente,
>>
>> Eduardo Camargo
>> Analista de Sistemas
>> HeMoLab - http://hemolab.lncc.br/equipe/desenv/eduardo.htm
>> Laboratório Nacional de Computação Científica - LNCC
>>
>> _______________________________________________
>> Dcmlib mailing list
>> Dcmlib at creatis.insa-lyon.fr
>>
>> http://www.creatis.insa-lyon.fr/mailman/listinfo/dcmlib
>>
>
>


-- 
Atenciosamente,

Eduardo Camargo
Analista de Sistemas
HeMoLab - http://hemolab.lncc.br/equipe/desenv/eduardo.htm
Laboratório Nacional de Computação Científica - LNCC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.creatis.insa-lyon.fr/pipermail/dcmlib/attachments/20100202/7e7884de/attachment.html>


More information about the Dcmlib mailing list