change of default filled HU value of the img_out in rigid registration

33 views
Skip to first unread message

Sheng Joey

unread,
Oct 5, 2022, 5:37:45 PM10/5/22
to Plastimatch
Dear all,
I have used the "registor" to registrate two CT images and output the new CT image.
It worked quite well. 
However, the boundary of the generated image was filled by HU value of 0. Which in my case I would fill it with HU -1000. See the attached figure and the code. How could I change the default fill values?
Thanks.

Best regards,
Joey

fillwith-1000insteadof0.png
Here is the code:

# command_file.txt

[GLOBAL]
fixed=CTori.nrrd
moving=CTnew.nrrd
fixed_roi=body.nrrd
img_out=warped_6d_mask_trip.nrrd

[STAGE]
xform=align_center
[STAGE]
xform=translation
optim=amoeba
[STAGE]
xform=rigid
max_its=50
res=4 4 2

Sharp, Gregory C.,PHD

unread,
Oct 5, 2022, 9:40:59 PM10/5/22
to Plastimatch
Hi Joey,

The best way to do this is to use two steps.

First, run the register command and create a transform. For rigid, it is something like:
xform_out=rigid.tfm

For deformable, it could be:
xform_out=vf.mha

These would go in the GLOBAL section or in the last stage.

Then the second step, use the transform to warp the image.

plastimatch warp --default-value -1000 --input image.mha --output registered.mha --xf rigid.tfm (or --xf vf.mha)

Greg

________________________________________
From: plast...@googlegroups.com <plast...@googlegroups.com> on behalf of Sheng Joey <18157...@gmail.com>
Sent: Wednesday, October 5, 2022 5:37 PM
To: Plastimatch
Subject: [Plastimatch] change of default filled HU value of the img_out in rigid registration

External Email - Use Caution

Dear all,
I have used the "registor" to registrate two CT images and output the new CT image.
It worked quite well.
However, the boundary of the generated image was filled by HU value of 0. Which in my case I would fill it with HU -1000. See the attached figure and the code. How could I change the default fill values?
Thanks.

Best regards,
Joey

[fillwith-1000insteadof0.png]
Here is the code:

# command_file.txt

[GLOBAL]
fixed=CTori.nrrd
moving=CTnew.nrrd
fixed_roi=body.nrrd
img_out=warped_6d_mask_trip.nrrd

[STAGE]
xform=align_center
[STAGE]
xform=translation
optim=amoeba
[STAGE]
xform=rigid
max_its=50
res=4 4 2

--
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<mailto:plastimatch...@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/plastimatch/d8da8eab-d3d6-4c48-a50c-a3b0b03b8837n%40googlegroups.com<https://secure-web.cisco.com/19cnOHKxJLGlTnax8E5eBqZ4uowFpUMbMGENCgqapdDadyqJ3ptTD3CxpD39i6K-8u0fPVvvAqvulYIpLLWgyJoG2f6U1jSp3YrFfVmd2VsqB-ODubiA3KU49lykSmr8__yfEEVbv6wOPX7N1FrZK7KkOZwovpkYN9nStzz0MJjyoi95BPQY6HquaHn1W88JyPWkasn-lXlchTfadtRhI6jlHcj89IQ0XJQXdy3ehlDnAMtx4B7OrihsJ0xS0Poun6yJc9cVx2ewYi06OmMGX3BJw7imK5e4TFZQjxghxUIvmgJ8umYYZqOxSvaMZH_E-a__7_H8TACb2qgPvkYMKEQ/https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fplastimatch%2Fd8da8eab-d3d6-4c48-a50c-a3b0b03b8837n%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter>.
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 <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.
fillwith-1000insteadof0.png

Sheng Joey

unread,
Oct 6, 2022, 5:11:12 AM10/6/22
to Plastimatch
Dear Greg,

Thank you for your quick reply.

The following command worked just as expected.
>plastimatch warp --default-value -1000 --input  CTnew .nrrd --output-img wrapoutfile.nrrd --xf rigid_xf.tfm

Thank you very much.

Best regards,
Joey
Reply all
Reply to author
Forward
0 new messages