With the help of plastimatch you can convert any rt-structure file into binary image by running: Now, if you wish to have the exported binary images of each structure registered with your rt-dose file, you can run: The plastimatch will generate the binary images in .nrrd format (also .mha can be specified in –prefix-format mha…