Hi Vinc,
Here is what I do:
(1) Create the mask images
You need a separate mask for fixed and moving images.
If you already have DICOM-RT structures, you can convert
them into individual images like this:
plastimatch convert --input dicom-directory --output-prefix output-directory
(2) "Apply" the masks to the input images
This fills the voxels which are not in the mask with a constant value.
Use the same constant value for both images. I use -1200.
plastimatch mask --input fixed.mha --mask fixed-lungs.mha --mask-value -1200
--output-image fixed-masked.mha
(3) Run registration on the masked images just like you would
normally do.
Greg
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.