Skip to content

Commit

Permalink
ENH: use SegmentDescription to populate SegmentLabel
Browse files Browse the repository at this point in the history
This will be done when SegmentLabel is not passed in configuration.
SegmentDescription is better than using CodeMeaning from SegmentationType,
as it allows more precise control by the user.
  • Loading branch information
fedorov committed Jan 12, 2024
1 parent 1922a09 commit 58069a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libsrc/Itk2DicomConverter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,9 @@ namespace dcmqi {
if(segmentAttributes->getSegmentLabel().length() > 0){
cout << "Populating segment label to " << segmentAttributes->getSegmentLabel() << endl;
segmentLabel = segmentAttributes->getSegmentLabel().c_str();
} else if(segmentAttributes->getSegmentDescription().length() > 0){
cout << "Populating segment label from SegmentDescription to " << segmentAttributes->getSegmentDescription() << endl;
segmentLabel = segmentAttributes->getSegmentDescription().c_str();
} else
CHECK_COND(typeCode->getCodeMeaning(segmentLabel));

Expand Down

0 comments on commit 58069a6

Please sign in to comment.