forked from QIICR/dcmqi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When converting from ITK to DICOM, allow to use Label IDs as Segment Numbers so that even if reading from various NRRD inputs, the Segments in the DICOM file will still use the Label IDs from the NRRD files. This is particularly helpful for testing since it allows a roundtrip test from DICOM -> multiple NRRD files using potentially multiple segments each -> back to DICOM. If no mapping to the Label IDs takes place, the converter will use ascending Segment Numbers, so the order will depend on the read order, which again usually depends on the order in the JSON meta information. This sorting behavior is disabled by default. It is available as cli option (--sortByLabelID) which is handed to the library through the Itk2DicomConverter::itkimage2dcmSegmentation() call.
- Loading branch information
1 parent
cee108c
commit 08a5ebd
Showing
10 changed files
with
354 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
{ | ||
"BodyPartExamined" : "", | ||
"ClinicalTrialCoordinatingCenterName" : "QIICR", | ||
"ClinicalTrialSeriesID" : "1", | ||
"ClinicalTrialTimePointID" : "1", | ||
"ContentCreatorName" : "Slicer", | ||
"InstanceNumber" : "1", | ||
"SeriesDescription" : "Segmentation", | ||
"SeriesNumber" : "100", | ||
"segmentAttributes" : | ||
[ | ||
[ | ||
{ | ||
"SegmentAlgorithmType" : "MANUAL", | ||
"SegmentDescription" : "Tissue", | ||
"SegmentLabel" : "GREEN", | ||
"SegmentedPropertyCategoryCodeSequence" : | ||
{ | ||
"CodeMeaning" : "Tissue", | ||
"CodeValue" : "85756007", | ||
"CodingSchemeDesignator" : "SCT" | ||
}, | ||
"SegmentedPropertyTypeCodeSequence" : | ||
{ | ||
"CodeMeaning" : "Tissue", | ||
"CodeValue" : "85756007", | ||
"CodingSchemeDesignator" : "SCT" | ||
}, | ||
"labelID" : 1, | ||
"recommendedDisplayRGBValue" : [ 128, 174, 128 ] | ||
}, | ||
{ | ||
"SegmentAlgorithmType" : "MANUAL", | ||
"SegmentDescription" : "Morphologically Altered Structure", | ||
"SegmentLabel" : "LIGHT_BLUE", | ||
"SegmentedPropertyCategoryCodeSequence" : | ||
{ | ||
"CodeMeaning" : "Morphologically Altered Structure", | ||
"CodeValue" : "49755003", | ||
"CodingSchemeDesignator" : "SCT" | ||
}, | ||
"SegmentedPropertyTypeCodeSequence" : | ||
{ | ||
"CodeMeaning" : "Edema", | ||
"CodeValue" : "79654002", | ||
"CodingSchemeDesignator" : "SCT" | ||
}, | ||
"labelID" : 4, | ||
"recommendedDisplayRGBValue" : [ 140, 224, 228 ] | ||
}, | ||
{ | ||
"SegmentAlgorithmType" : "MANUAL", | ||
"SegmentDescription" : "Tissue", | ||
"SegmentLabel" : "DARK_BLUE", | ||
"SegmentedPropertyCategoryCodeSequence" : | ||
{ | ||
"CodeMeaning" : "Tissue", | ||
"CodeValue" : "85756007", | ||
"CodingSchemeDesignator" : "SCT" | ||
}, | ||
"SegmentedPropertyTypeCodeSequence" : | ||
{ | ||
"CodeMeaning" : "Vein", | ||
"CodeValue" : "29092000", | ||
"CodingSchemeDesignator" : "SCT" | ||
}, | ||
"labelID" : 5, | ||
"recommendedDisplayRGBValue" : [ 0, 151, 206 ] | ||
} | ||
], | ||
[ | ||
{ | ||
"SegmentAlgorithmType" : "MANUAL", | ||
"SegmentDescription" : "Tissue", | ||
"SegmentLabel" : "ORANGE", | ||
"SegmentedPropertyCategoryCodeSequence" : | ||
{ | ||
"CodeMeaning" : "Tissue", | ||
"CodeValue" : "85756007", | ||
"CodingSchemeDesignator" : "SCT" | ||
}, | ||
"SegmentedPropertyTypeCodeSequence" : | ||
{ | ||
"CodeMeaning" : "Artery", | ||
"CodeValue" : "51114001", | ||
"CodingSchemeDesignator" : "SCT" | ||
}, | ||
"labelID" : 2, | ||
"recommendedDisplayRGBValue" : [ 216, 101, 79 ] | ||
} | ||
], | ||
[ | ||
{ | ||
"SegmentAlgorithmType" : "MANUAL", | ||
"SegmentDescription" : "Tissue", | ||
"SegmentLabel" : "PURPLE", | ||
"SegmentedPropertyCategoryCodeSequence" : | ||
{ | ||
"CodeMeaning" : "Tissue", | ||
"CodeValue" : "85756007", | ||
"CodingSchemeDesignator" : "SCT" | ||
}, | ||
"SegmentedPropertyTypeCodeSequence" : | ||
{ | ||
"CodeMeaning" : "Capillary", | ||
"CodeValue" : "20982000", | ||
"CodingSchemeDesignator" : "SCT" | ||
}, | ||
"labelID" : 3, | ||
"recommendedDisplayRGBValue" : [ 183, 156, 220 ] | ||
} | ||
] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.