I think you could use the imagemagick convert program.
But even better, I should refactor that code. It is ancient, circa 2003, before ITK was required. Now that ITK is required, we should use it!
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 plastimatch...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plastimatch/d8f69cc2-cda7-40e4-9bd8-42a10ca37af8n%40googlegroups.com.
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 https://www.massgeneralbrigham.org/complianceline .
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/plastimatch/BL0PR04MB45935D49DE458E234D75725DCF3E9%40BL0PR04MB4593.namprd04.prod.outlook.com.
You received this message because you are subscribed to a topic in the Google Groups "Plastimatch" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/plastimatch/iBkDCdICk68/unsubscribe.
To unsubscribe from this group and all its topics, send an email to plastimatch...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plastimatch/a12f54bd-db47-2f27-1df0-c92787e9f009%40yahoo.it.