From: tbaudier Date: Fri, 8 Mar 2019 08:23:46 +0000 (+0100) Subject: Revert previsous commit with Roi name X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=a8a4ad6db4f75c4e0ac66a9aca10ff47b424e919;p=clitk.git 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 --- 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();