convert error negative value

Skip to first unread message

mara Wang

Apr 14, 2021, 8:25:22 AMApr 14
to Plastimatch
Hi all,

I converted dicm to mha. However, if the pixel value is larger than 20000 in the dicm file, negative value would  show in the mha. I have tried 
"--output-type double" and "--output-type ushort"
However, it seemed not working. Please help!


Sharp, Gregory C.

Apr 30, 2021, 11:40:45 AMApr 30
to Plastimatch
Hi Mara,
It looks like a problem at import.  Do you have a sample image you could share?

From: <> on behalf of mara Wang <>
Sent: Wednesday, April 14, 2021 8:25 AM
To: Plastimatch <>
Subject: [Plastimatch] convert error negative value

        External Email - Use Caution        

You received this message because you are subscribed to the Google Groups "Plastimatch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
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 Mass General Brigham Compliance HelpLine at . 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.

Please note that this e-mail is not secure (encrypted).  If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately.  Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail. 

mara Wang

May 1, 2021, 5:09:44 AMMay 1
Hi Greg,

Thanks for your help. Please find the sample dicm file in the attachment.


Sharp, Gregory C. <> 于2021年4月30日周五 下午5:40写道:

Sharp, Gregory C.

May 5, 2021, 3:24:11 PMMay 5
Thank you Mara for the data.  Unfortunately I could not reproduce the problem.

$ plastimatch convert --input dicm --output-img 1.mha
$ plastimatch stats 1.mha
MIN 0.000000 AVE 178.694153 MAX 20387.955078 NONZERO 6371621 NUMVOX 8781824

Can you please run the above commands and show your result? Which plastimatch version you are using?

Sent: Saturday, May 1, 2021 5:09 AM
To: <>
Subject: Re: [Plastimatch] convert error negative value
Reply all
Reply to author
0 new messages