Re: [Tutor] Parsing DICOMRT file

2008-03-15 Thread Bryan Fodness
Haven't had a chance to look at this in a while. On Wed, Dec 12, 2007 at 6:57 PM, John Fouhy <[EMAIL PROTECTED]> wrote: > On 13/12/2007, Bryan Fodness <[EMAIL PROTECTED]> wrote: > > I am new to doing anything like this. I have looked at > > http://www.leadtools.com/SDK/Medical/DICOM/ltdc1.htm an

Re: [Tutor] Parsing DICOMRT file

2007-12-12 Thread Kent Johnson
Bryan Fodness wrote: > I am trying to parse a DICOMRT file, which is a radiation therapy DICOM > file. This might be helpful - I haven't tried it, but it seems to be designed for this sort of thing: http://construct.wikispaces.com/ Also googling 'python dicom' gets quite a few hits. Kent

Re: [Tutor] Parsing DICOMRT file

2007-12-12 Thread Eric Brunson
Bryan Fodness wrote: > I am trying to parse a DICOMRT file, which is a radiation therapy > DICOM file. I'm a little late to the party, but you may want to take a look at this: http://mypage.iu.edu/~mmiller3/python/#dycom > > First, I get different outputs from the two methods below. > > f

Re: [Tutor] Parsing DICOMRT file

2007-12-12 Thread Bryan Fodness
Just downloaded it and have not had a chance to check it out. Thanks, Bryan On Dec 12, 2007 6:18 PM, Eric Brunson <[EMAIL PROTECTED]> wrote: > Bryan Fodness wrote: > > I am trying to parse a DICOMRT file, which is a radiation therapy > > DICOM file. > > I'm a little late to the party, but you ma

Re: [Tutor] Parsing DICOMRT file

2007-12-12 Thread Bryan Fodness
Thanks for the immediate response! On Dec 12, 2007 5:57 PM, John Fouhy <[EMAIL PROTECTED]> wrote: > On 13/12/2007, Bryan Fodness <[EMAIL PROTECTED]> wrote: > > I am new to doing anything like this. I have looked at > > http://www.leadtools.com/SDK/Medical/DICOM/ltdc1.htm and am > > not sure how

Re: [Tutor] Parsing DICOMRT file

2007-12-12 Thread John Fouhy
On 13/12/2007, Bryan Fodness <[EMAIL PROTECTED]> wrote: > I am new to doing anything like this. I have looked at > http://www.leadtools.com/SDK/Medical/DICOM/ltdc1.htm and am > not sure how to proceed. I haven't much experience here, but this is how I'd proceed, I think: 1. Start by reading the

Re: [Tutor] Parsing DICOMRT file

2007-12-11 Thread Alan Gauld
"Bryan Fodness" <[EMAIL PROTECTED]> wrote > First, I get different outputs from the two methods below. > > for line in file('file.dcm', 'rb'): > print line This prints each line in turn. > inp = open('file.dcm', 'rb') > print inp.readlines() This prints a list of lines > Second, I have nev

Re: [Tutor] Parsing DICOMRT file

2007-12-11 Thread bob gailer
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.

[Tutor] Parsing DICOMRT file

2007-12-11 Thread Bryan Fodness
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() Second, I have never tried to parse a binary file. I co