... small correction, for float double I used the FD code not the FL VR type.
Dicominfo tag is being read as uint16 instead of float double
3 views (last 30 days)
Show older comments
Hello,
I am trying to read a private dicom tag using the dicominfo commat.
Following the instructions in MathWorks site:
(a) Genrated a unique dicom dictionary, where I added this tag <using the format: [Tag] [Name] FL (float double) 4>
(b) set the code to use this dictionary when reading the dicominfo <using the dicomdict('set',....) command>
Now, When I am running the code I see that the dicominfo is using the new dictionary (Tag name is according to the dictionary setup), yet the tag value is still being imported as unit16 and not float double.
Any ideas that can help to solve this one?
6 Comments
Rik
on 23 Sep 2019
I would expect this issue to appear irrespective of the actual content of the dicom file. As long you have a similar data type you can even randomly generate a dicom file. That is actually even the preferred method. In that case you will only need to attach the dictionary and write some code that generates the dicom file and returns this result when loading it again.
Feel free to use included example files to generate an image (like S=load('mri');IM=squeeze(S.D);).
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!