From aafea70ff94a6d003db140e0a135e1fedffbdb46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=ABl=20Spaltenstein?= Date: Fri, 2 Feb 2024 11:12:42 +0000 Subject: [PATCH] use new ST_LABELMAP enum --- libsrc/Dicom2ItkConverter.cpp | 2 +- libsrc/OverlapUtil.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libsrc/Dicom2ItkConverter.cpp b/libsrc/Dicom2ItkConverter.cpp index da0184ae..05cf1643 100644 --- a/libsrc/Dicom2ItkConverter.cpp +++ b/libsrc/Dicom2ItkConverter.cpp @@ -214,7 +214,7 @@ itk::SmartPointer Dicom2ItkConverter::nextResult() /* WIP */ } - bool labelMapSegmentation = m_segDoc->getSegmentationType() == (DcmSegTypes::E_SegmentationType) 3; // LABELMAP; + bool labelMapSegmentation = m_segDoc->getSegmentationType() == DcmSegTypes::ST_LABELMAP; for (unsigned row = 0; row < m_imageSize[1]; row++) { for (unsigned col = 0; col < m_imageSize[0]; col++) diff --git a/libsrc/OverlapUtil.cpp b/libsrc/OverlapUtil.cpp index 60b22290..a485c6cd 100644 --- a/libsrc/OverlapUtil.cpp +++ b/libsrc/OverlapUtil.cpp @@ -167,7 +167,7 @@ OFCondition OverlapUtil::getSegmentsForFrame(const Uint32 frameNumber, std::set< m_segmentsForFrame.resize(numFrames); for (Uint32 f = 0; f < numFrames; f++) { OFCondition result; - if (m_seg->getSegmentationType() == (DcmSegTypes::E_SegmentationType) 3) // LABELMAP + if (m_seg->getSegmentationType() == DcmSegTypes::ST_LABELMAP) { result = getSegmentsForLabelMapFrame(f, m_segmentsForFrame[f]); if (result.bad()) @@ -656,7 +656,7 @@ OFCondition OverlapUtil::buildOverlapMatrix() // If they overlap, mark as overlapping OFCondition cond; OFBool overlap = OFFalse; - if (m_seg->getSegmentationType() == (DcmSegTypes::E_SegmentationType) 3) // LABELMAP + if (m_seg->getSegmentationType() == DcmSegTypes::ST_LABELMAP) { cond = checkFramesOverlapLabelMap(*it, *it2, overlap); }