25 #include <unordered_map>
39 std::unordered_map<std::string, std::string> expectedPropertyTypes;
41 additionalTags.insert( std::make_pair(
DICOMTag( 0x0008, 0x0005 ),
"Test1") );
42 additionalTags.insert( std::make_pair(
DICOMTag( 0x0008, 0x0060 ),
"Test2") );
43 additionalTags.insert( std::make_pair(
DICOMTag( 0x0020, 0x1041 ),
"Test3") );
45 gdcmReader->SetAdditionalTagsOfInterest( additionalTags );
56 gdcmReader->AddSortingElement( filenameSorter );
64 tagSorter->AddDistinguishingTag(
DICOMTag(0x0028, 0x0010) );
65 tagSorter->AddDistinguishingTag(
DICOMTag(0x0028, 0x0011) );
66 tagSorter->AddDistinguishingTag(
DICOMTag(0x0028, 0x0030) );
67 tagSorter->AddDistinguishingTag(
DICOMTag(0x0018, 0x1164) );
69 tagSorter->AddDistinguishingTag(
DICOMTag(0x0020, 0x000e) );
70 tagSorter->AddDistinguishingTag(
DICOMTag(0x0018, 0x0050) );
71 tagSorter->AddDistinguishingTag(
DICOMTag(0x0028, 0x0008) );
72 tagSorter->AddDistinguishingTag(
DICOMTag(0x0020, 0x0052) );
86 tagSorter->SetSortCriterion( sorting );
88 gdcmReader->AddSortingElement( tagSorter );
90 gdcmReader->SetAdditionalTagsOfInterest( additionalTags );
95 gdcmReader->PrintOutputs(std::cout,
true);
112 expectedPropertyTypes.insert(std::make_pair(
"Test1",
"StringProperty"));
113 expectedPropertyTypes.insert(std::make_pair(
"Test2",
"StringProperty"));
114 expectedPropertyTypes.insert(std::make_pair(
"Test3",
"StringProperty"));
118 gdcmReader->PrintOutputs(std::cout,
true);
static void TestMitkImagesAreLoaded(DICOMFileReader *reader, const DICOMFileReader::AdditionalTagsMapType &requestedTags, const std::unordered_map< std::string, std::string > &expectedProperties)
itk::SmartPointer< Self > Pointer
#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
itk::SmartPointer< const Self > ConstPointer
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[])
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.