[Tutor] Parsing DICOMRT file

bob gailer bgailer at alum.rpi.edu
Wed Dec 12 05:06:57 CET 2007


Bryan Fodness wrote:
> I am trying to parse a DICOMRT file, which is a radiation therapy 
> DICOM file. 
>  
> First, I get different outputs from the two methods below.
>  
> for line in file('file.dcm', 'rb'):
>     print line
>    
> inp = open('file.dcm', 'rb')
> print inp.readlines()
I agree. I'd expect that. Why does it surprise you? What did you expect?
>  
> Second, I have never tried to parse a binary file.  I could use a few 
> hints to get started.
Hint 1 - tell us what the fie format is and what you want from "parsing" it.

Most of us here are not acquainted with DICOM files.


More information about the Tutor mailing list