Since the group number (0029) of the tag is odd, the element is private
and thus can mean different things to different vendors. Have a look at
_private_dict.py, and search for 0029xx40 since (as far as I can tell)
the first byte of the element number is irrelevant to the semantic of a
private tag.
To get around this, post a bit of code so that we can know what's going
wrong :) In my experience, private tags have been processed correctly by
pydicom.
> Also, what is the best way to determine whether a dicom file has an
> image? Is it via checking whether the PixelData dataelement exists?
> For this same file, the DICOM file has a viewable image, but it does
> not have a pixeldata field.
I'd use the SOP Class UID (0008,0016) (cf. PS 3.4, section B.5 for the
standard classes) : basically, anything ending with "Image Storage"
should contain an image.
--
Julien
First you need to know what type your parameter is (sequence, floating
point and so forth and then:
I use the following (correct to add the proper line with your parameter) :
from dicom.datadict import DicomDictionary, NameDict, CleanName
import dicom
new_dict_items = {
0x2005140f: ('SQ', '1', "Test FourthyTwo 0 Sequence" ),
0x20051330: ('CS', '1', "Why would you save this?" ),
0x20051402: ('SQ', '1', "Test FourthyTwo 12 Sequence" ),
0x20051418: ('CS', '1', "Some MR parameter" ),
0x20051419: ('CS', '1', "Some other MR parameter" ),
0x2005143a: ('CS', '1', "Yet some other MR parameter" ),
0x2001105f: ('SQ', '1', "Stack Sequence"),
0x2005100d: ('FL', '1', "Scale Intercept"),
0x2005100e: ('FL', '1', "Scale Slope"),
0x00281052: ('FL', '1', "Rescale Intercept"),
0x00281053: ('FL', '1', "Rescale Slope"),
0x20051008: ('FL', '1', "Image OffCenter AP mm"),
0x20051009: ('FL', '1', "Image OffCenter FH mm"),
0x2005100a: ('FL', '1', "Image OffCenter RL mm"),
0x2005101d: ('US', '1', "Who knows"),
}
DicomDictionary.update(new_dict_items)
new_names_dict = dict([(CleanName(tag), tag) for tag in new_dict_items])
NameDict.update(new_names_dict)
--
Edo
weblog http://edo.imanetti.net/wordpress
podcast http://sieegiueeaccaso.blogspot.com
cooking http://edo.imanetti.net/cucina
:wq
Edo
> --
> You received this message because you are subscribed to the Google Groups "pydicom" group.
> To post to this group, send email to pyd...@googlegroups.com.
> To unsubscribe from this group, send email to pydicom+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/pydicom?hl=en.
>
>
--
Edo
weblog http://edo.imanetti.net/wordpress