Skip to content

Commit

Permalink
use new ST_LABELMAP enum
Browse files Browse the repository at this point in the history
  • Loading branch information
spalte committed Feb 2, 2024
1 parent c03d215 commit aafea70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libsrc/Dicom2ItkConverter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ itk::SmartPointer<ShortImageType> 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++)
Expand Down
4 changes: 2 additions & 2 deletions libsrc/OverlapUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit aafea70

Please sign in to comment.