From a8a4ad6db4f75c4e0ac66a9aca10ff47b424e919 Mon Sep 17 00:00:00 2001 From: tbaudier Date: Fri, 8 Mar 2019 09:23:46 +0100 Subject: [PATCH] Revert previsous commit with Roi name 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/clitkImage2DicomRTStructFilter.txx b/common/clitkImage2DicomRTStructFilter.txx index 17757c8..eba1251 100644 --- a/common/clitkImage2DicomRTStructFilter.txx +++ b/common/clitkImage2DicomRTStructFilter.txx @@ -199,7 +199,7 @@ void clitk::Image2DicomRTStructFilter::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::Update() writer->InitializeRTStructSet(m_DicomFolder, reader->GetRTStructSetProperties()->GetStructureSetLabel(), reader->GetRTStructSetProperties()->GetStructureSetName(), - roiTypes, roiAlgorithms, roiTypes); + roiNames, roiAlgorithms, roiTypes); writer->Write(); reader->Delete(); roiNames->Delete(); -- 2.47.1