[Insight-users] how can I access one of the element of my string
of entryId = "0020|0032";
Mathieu Malaterre
mathieu.malaterre at gmail.com
Sun Jun 3 12:11:54 EDT 2007
Alireza,
Thanks for describing in details your issue, but you are not
describing what you are trying to do.
DICOM Tag 0020,0032 is simply the Image Position (Patient), you
should not need to read the value from the dictionary. Instead you
should be using the regular ITK interface: GetOrigin, GetDimension and
GetSpacing. Why are you trying to read the value from the dictionary ?
Thanks,
-Mathieu
On 6/3/07, Alireza Salamy <alireza_sal2000 at yahoo.com> wrote:
> Hi all users,
> I calculate the dicime tags of MY images and I got the value of
> entryId = "0020|0032";
> as a string which is
> :94.526847839355\-140.56767469737\116.266642509959,
> Now I need each of three number of this string for putting in my matrix.Can
> anybody tell me how can I get out forexample the first element which is
> 94.526847839355 from the string?
> Thanks,
> Alireza
>
> ________________________________
> Got a little couch potato?
> Check out fun summer activities for kids.
>
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
>
--
Mathieu
More information about the Insight-users
mailing list