Replace RoiName by RoiType because into the DicomRTStruct, before, it displayed the RoiName (name of the file) instead of the name of the ROI (RoiType)
writer->InitializeRTStructSet(m_DicomFolder,
reader->GetRTStructSetProperties()->GetStructureSetLabel(),
reader->GetRTStructSetProperties()->GetStructureSetName(),
writer->InitializeRTStructSet(m_DicomFolder,
reader->GetRTStructSetProperties()->GetStructureSetLabel(),
reader->GetRTStructSetProperties()->GetStructureSetName(),
- roiNames, roiAlgorithms, roiTypes);
+ roiTypes, roiAlgorithms, roiTypes);
writer->Write();
reader->Delete();
roiNames->Delete();
writer->Write();
reader->Delete();
roiNames->Delete();