]> Creatis software - clitk.git/commitdiff
Revert previsous commit with Roi name
authortbaudier <thomas.baudier@creatis.insa-lyon.fr>
Fri, 8 Mar 2019 08:23:46 +0000 (09:23 +0100)
committertbaudier <thomas.baudier@creatis.insa-lyon.fr>
Fri, 8 Mar 2019 08:23:46 +0000 (09:23 +0100)
With RoiType instead of RoiName, the name of the previous ROI is not correct (ORGAN)
and the name of the new ROI correspond to the filename with ROIName
So I choose to pass ROIName and to change the name of the new ROI to the same than in RoiType

common/clitkImage2DicomRTStructFilter.txx

index 17757c8fc008e1c2560b2cde09b0d0a4117c8070..eba1251cfa0377927923016446135b22be4fda3f 100644 (file)
@@ -199,7 +199,7 @@ void clitk::Image2DicomRTStructFilter<PixelType>::Update()
 #else
     writer->SetInputData(i, meshes[i-numMasks+m]);
 #endif
-    roiNames->InsertValue(i, m_ROINames[i-numMasks+m]);
+    roiNames->InsertValue(i, m_ROIType);
     roiAlgorithms->InsertValue(i, "CLITK_CREATED");
     roiTypes->InsertValue(i, m_ROIType);
   }
@@ -242,7 +242,7 @@ void clitk::Image2DicomRTStructFilter<PixelType>::Update()
   writer->InitializeRTStructSet(m_DicomFolder,
                                 reader->GetRTStructSetProperties()->GetStructureSetLabel(),
                                 reader->GetRTStructSetProperties()->GetStructureSetName(),
-                                roiTypes, roiAlgorithms, roiTypes);
+                                roiNames, roiAlgorithms, roiTypes);
   writer->Write();
   reader->Delete();
   roiNames->Delete();