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); }