]> Creatis software - clitk.git/commitdiff
add crop flag
authordsarrut <dsarrut>
Wed, 15 Dec 2010 08:53:36 +0000 (08:53 +0000)
committerdsarrut <dsarrut>
Wed, 15 Dec 2010 08:53:36 +0000 (08:53 +0000)
tools/clitkDicomRTStruct2BinaryImage.cxx

index 1201bd5dc6c9214dc54bed6cd4cfbf4aad445890..1e948532ebdc96a09565dfdc6ff19e4393102d1d 100644 (file)
@@ -43,6 +43,9 @@ int main(int argc, char * argv[]) {
   }
   else {
     for(unsigned int i=0; i<s.GetListOfROI().size(); i++) {
+      clitk::DicomRT_ROI_ConvertToImageFilter filter;
+      filter.SetCropMaskEnabled(args_info.crop_flag);
+      filter.SetImageFilename(args_info.image_arg);  // Used to get spacing + origin
       std::string name = s.GetListOfROI()[i]->GetName();
       int num = s.GetListOfROI()[i]->GetROINumber();
       filter.SetROI(s.GetListOfROI()[i]);