21 #include <unordered_map> 35 std::unordered_map<std::string, std::string> expectedPropertyTypes;
37 additionalTags.insert( std::make_pair(
DICOMTag( 0x0008, 0x0005 ),
"Test1") );
38 additionalTags.insert( std::make_pair(
DICOMTag( 0x0008, 0x0060 ),
"Test2") );
39 additionalTags.insert( std::make_pair(
DICOMTag( 0x0020, 0x1041 ),
"Test3") );
41 gdcmReader->SetAdditionalTagsOfInterest( additionalTags );
52 gdcmReader->AddSortingElement( filenameSorter );
60 tagSorter->AddDistinguishingTag(
DICOMTag(0x0028, 0x0010) );
61 tagSorter->AddDistinguishingTag(
DICOMTag(0x0028, 0x0011) );
62 tagSorter->AddDistinguishingTag(
DICOMTag(0x0028, 0x0030) );
63 tagSorter->AddDistinguishingTag(
DICOMTag(0x0018, 0x1164) );
65 tagSorter->AddDistinguishingTag(
DICOMTag(0x0020, 0x000e) );
66 tagSorter->AddDistinguishingTag(
DICOMTag(0x0018, 0x0050) );
67 tagSorter->AddDistinguishingTag(
DICOMTag(0x0028, 0x0008) );
68 tagSorter->AddDistinguishingTag(
DICOMTag(0x0020, 0x0052) );
71 mitk::DICOMSortCriterion::ConstPointer sorting =
72 mitk::DICOMSortByTag::New(
DICOMTag(0x0020, 0x0013),
73 mitk::DICOMSortByTag::New(
DICOMTag(0x0020, 0x0012),
74 mitk::DICOMSortByTag::New(
DICOMTag(0x0008, 0x0032),
75 mitk::DICOMSortByTag::New(
DICOMTag(0x0018, 0x1060),
76 mitk::DICOMSortByTag::New(
DICOMTag(0x0008, 0x0018)
82 tagSorter->SetSortCriterion( sorting );
84 gdcmReader->AddSortingElement( tagSorter );
86 gdcmReader->SetAdditionalTagsOfInterest( additionalTags );
91 gdcmReader->PrintOutputs(std::cout,
true);
108 expectedPropertyTypes.insert(std::make_pair(
"Test1",
"StringProperty"));
109 expectedPropertyTypes.insert(std::make_pair(
"Test2",
"StringProperty"));
110 expectedPropertyTypes.insert(std::make_pair(
"Test3",
"StringProperty"));
114 gdcmReader->PrintOutputs(std::cout,
true);
static void TestMitkImagesAreLoaded(DICOMFileReader *reader, const DICOMFileReader::AdditionalTagsMapType &requestedTags, const std::unordered_map< std::string, std::string > &expectedProperties)
#define MITK_TEST_CONDITION_REQUIRED(COND, MSG)
Representation of a DICOM tag.
section GeneralTestsDeprecatedOldTestingStyle Deprecated macros All tests with MITK_TEST_BEGIN()
ValueType GetTableValue(IdentifierType id) const
DICOMImageBlockDescriptor::AdditionalTagsMapType AdditionalTagsMapType
static void TestOutputsContainInputs(DICOMFileReader *reader)
static void SetTestInputFilenames(int argc, char *argv[])
Cuts a number after configured number of decimal places. An instance of this class can be used to avo...
static void TestInputFilenames(DICOMFileReader *reader)
int mitkDICOMITKSeriesGDCMReaderBasicsTest(int argc, char *argv[])