Mha structures to dicomrt

59 views
Skip to first unread message

Paolo Zaffino

unread,
May 18, 2012, 4:31:19 AM5/18/12
to Plastimatch
Dear Dr. Sharp and Plastimatch community,

I have a directory with some binary structures stored as mha files.
I would like to save all this structures into a dicomrt, can I do this using Plastimatch?

Thank you very much.
Paolo

Sharp, Gregory C.

unread,
May 18, 2012, 4:38:54 PM5/18/12
to plast...@googlegroups.com
Hi Paolo,
 
Very unfortunately, this is not currently possible.
 
I will try to fix plastimatch so it can do this, and will send an update to the list when I'm finished.
 
Greg


From: plast...@googlegroups.com [mailto:plast...@googlegroups.com] On Behalf Of Paolo Zaffino
Sent: Friday, May 18, 2012 4:31 AM
To: Plastimatch
Subject: [Plastimatch] Mha structures to dicomrt

The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.

Paolo Zaffino

unread,
May 19, 2012, 8:37:31 AM5/19/12
to plast...@googlegroups.com
Ah ok, I have understood.
Thank you very much!

Regards.
Paolo

Sharp, Gregory C.

unread,
May 24, 2012, 1:44:58 PM5/24/12
to plast...@googlegroups.com
Hi Paolo,
 
I made a patch to implement this.  If you now use --input-prefix option, it will load all the
files in that directory (must be mha format) as a separate structure.  The name of the
structure is set from the file name.  Could you please give it a try, and let me know
if it is working for you?
 
Thank you,
Greg
 


From: plast...@googlegroups.com [mailto:plast...@googlegroups.com] On Behalf Of Paolo Zaffino
Sent: Saturday, May 19, 2012 8:38 AM
To: plast...@googlegroups.com
Subject: Re: [Plastimatch] Mha structures to dicomrt

Paolo Zaffino

unread,
May 25, 2012, 7:52:26 AM5/25/12
to plast...@googlegroups.com
Dear Dr Sharp,

I updated Plastimatch and I tried the new feature, it works!
Anyway I get another problem: when I try to convert a dicomrt into different mha files Plastimatch crashes and prints:
segmentation fault (core dumped).

With the revision #3240 there aren't problems, all works well.

Thank you very much for the new feature!

Paolo


Da: "Sharp, Gregory C." <GCS...@PARTNERS.ORG>
A: plast...@googlegroups.com
Inviato: Giovedì 24 Maggio 2012 19:44
Oggetto: RE: [Plastimatch] Mha structures to dicomrt

Sharp, Gregory C.

unread,
May 25, 2012, 4:52:08 PM5/25/12
to plast...@googlegroups.com
Hi Paolo,
 
Can you please give me the command line that you use?
 
Thank you,
Greg


From: plast...@googlegroups.com [mailto:plast...@googlegroups.com] On Behalf Of Paolo Zaffino
Sent: Friday, May 25, 2012 7:52 AM

Paolo

unread,
May 25, 2012, 4:56:12 PM5/25/12
to plast...@googlegroups.com
Sure, I use this:

plastimatch convert --input=dicomrt.dcm --interpolation=nn --output-type=uchar --referenced-ct=ct_dir --output-prefix=mha_dir

Sharp, Gregory C.

unread,
May 26, 2012, 10:29:36 AM5/26/12
to plast...@googlegroups.com

Hi Paolo,

I think I fixed the problem. Can you please tell me if it is working now?

Thanks!
Greg


-----Original Message-----
From: plast...@googlegroups.com on behalf of Paolo
Sent: Fri 5/25/2012 4:56 PM
To: plast...@googlegroups.com
Subject: Re: [Plastimatch] Mha structures to dicomrt

Sure, I use this:

plastimatch convert --input=dicomrt.dcm --interpolation=nn
--output-type=uchar --referenced-ct=ct_dir --output-prefix=mha_dir






Il 25/05/2012 22:52, Sharp, Gregory C. ha scritto:
> Hi Paolo,
> Can you please give me the command line that you use?
> Thank you,
> Greg
>
> ------------------------------------------------------------------------
> *From:* plast...@googlegroups.com
> [mailto:plast...@googlegroups.com] *On Behalf Of *Paolo Zaffino
> *Sent:* Friday, May 25, 2012 7:52 AM
> *To:* plast...@googlegroups.com
> *Subject:* Re: [Plastimatch] Mha structures to dicomrt
>
> Dear Dr Sharp,
>
> I updated Plastimatch and I tried the new feature, it works!
> Anyway I get another problem: when I try to convert a dicomrt into
> different mha files Plastimatch crashes and prints:
> segmentation fault (core dumped).
>
> With the revision #3240 there aren't problems, all works well.
>
> Thank you very much for the new feature!
>
> Paolo
>
> ------------------------------------------------------------------------
> *Da:* "Sharp, Gregory C." <GCS...@PARTNERS.ORG>
> *A:* plast...@googlegroups.com
> *Inviato:* Giovedì 24 Maggio 2012 19:44
> *Oggetto:* RE: [Plastimatch] Mha structures to dicomrt
>
> Hi Paolo,
> I made a patch to implement this. If you now use --input-prefix
> option, it will load all the
> files in that directory (must be mha format) as a separate structure.
> The name of the
> structure is set from the file name. Could you please give it a try,
> and let me know
> if it is working for you?
> Thank you,
> Greg
>
> ------------------------------------------------------------------------
> *From:* plast...@googlegroups.com
> [mailto:plast...@googlegroups.com] *On Behalf Of *Paolo Zaffino
> *Sent:* Saturday, May 19, 2012 8:38 AM
> *To:* plast...@googlegroups.com
> *Subject:* Re: [Plastimatch] Mha structures to dicomrt
>
> Ah ok, I have understood.
> Thank you very much!
>
> Regards.
> Paolo
>
>
>
> Il 18/05/2012 22:38, Sharp, Gregory C. ha scritto:
>> Hi Paolo,
>> Very unfortunately, this is not currently possible.
>> I will try to fix plastimatch so it can do this, and will send an
>> update to the list when I'm finished.
>> Greg
>>
>> ------------------------------------------------------------------------
>> *From:* plast...@googlegroups.com
>> <mailto:plast...@googlegroups.com>
>> [mailto:plast...@googlegroups.com] *On Behalf Of *Paolo Zaffino
>> *Sent:* Friday, May 18, 2012 4:31 AM
>> *To:* Plastimatch
>> *Subject:* [Plastimatch] Mha structures to dicomrt

Paolo Zaffino

unread,
May 28, 2012, 5:53:08 AM5/28/12
to plast...@googlegroups.com
Dear Dr. Sharp,

I updated and all works fine now.
Thanks a lot!

Paolo



Da: "Sharp, Gregory C." <GCS...@PARTNERS.ORG>
A: plast...@googlegroups.com; plast...@googlegroups.com
Inviato: Sabato 26 Maggio 2012 16:29
Oggetto: RE: [Plastimatch] Mha structures to dicomrt
Reply all
Reply to author
Forward
0 new messages