27 CPPUNIT_TEST_SUITE(mitkDICOMDCMTKTagScannerTestSuite);
32 CPPUNIT_TEST_SUITE_END();
54 void tearDown()
override
67 scanner->SetInputFiles(doseFiles);
68 scanner->AddTagPath(planUIDPath);
69 scanner->AddTagPath(patientName);
74 CPPUNIT_ASSERT_MESSAGE(
"Testing DICOMDCMTKTagScanner::GetFrameInfoList()", frames.size() == 1);
77 CPPUNIT_ASSERT_MESSAGE(
"Testing DICOMDCMTKTagScanner::GetFrameInfoList()", findings.size() == 1);
78 CPPUNIT_ASSERT_MESSAGE(
"Testing validity of first plan finding", findings.front().isValid);
79 CPPUNIT_ASSERT_MESSAGE(
"Testing path of first plan finding", findings.front().path == planUIDPathRef);
80 CPPUNIT_ASSERT_MESSAGE(
"Testing value of first plan finding", findings.front().value ==
"1.2.826.0.1.3680043.8.176.2013826104526987.672.1228523524");
82 findings = frames.front()->GetTagValueAsString(patientName);
83 CPPUNIT_ASSERT_MESSAGE(
"Testing DICOMDCMTKTagScanner::GetFrameInfoList()", findings.size() == 1);
84 CPPUNIT_ASSERT_MESSAGE(
"Testing validity of first plan finding", findings.front().isValid);
85 CPPUNIT_ASSERT_MESSAGE(
"Testing path of first plan finding", findings.front().path == patientName);
86 CPPUNIT_ASSERT_MESSAGE(
"Testing value of first plan finding", findings.front().value ==
"L_H");
89 void MultiFileScanning()
93 scanner->SetInputFiles(ctFiles);
94 scanner->AddTagPath(instanceUID);
99 CPPUNIT_ASSERT_MESSAGE(
"Testing DICOMDCMTKTagScanner::GetFrameInfoList()", frames.size() == 4);
102 CPPUNIT_ASSERT_MESSAGE(
"Testing DICOMDCMTKTagScanner::GetFrameInfoList()", findings.size() == 1);
103 CPPUNIT_ASSERT_MESSAGE(
"Testing validity of instance uid finding of frame 0", findings.front().isValid);
104 CPPUNIT_ASSERT_MESSAGE(
"Testing path of instance uid finding of frame 0", findings.front().path == instanceUID);
105 CPPUNIT_ASSERT_MESSAGE(
"Testing value of instance uid finding of frame 0", findings.front().value ==
"1.2.276.0.99.1.4.8323329.3795.1303917947.940051");
107 findings = frames[1]->GetTagValueAsString(instanceUID);
108 CPPUNIT_ASSERT_MESSAGE(
"Testing DICOMDCMTKTagScanner::GetFrameInfoList()", findings.size() == 1);
109 CPPUNIT_ASSERT_MESSAGE(
"Testing validity of instance uid finding of frame 1", findings.front().isValid);
110 CPPUNIT_ASSERT_MESSAGE(
"Testing path of instance uid finding of frame 1", findings.front().path == instanceUID);
111 CPPUNIT_ASSERT_MESSAGE(
"Testing value of instance uid finding of frame 1", findings.front().value ==
"1.2.276.0.99.1.4.8323329.3795.1303917947.940052");
113 findings = frames[2]->GetTagValueAsString(instanceUID);
114 CPPUNIT_ASSERT_MESSAGE(
"Testing DICOMDCMTKTagScanner::GetFrameInfoList()", findings.size() == 1);
115 CPPUNIT_ASSERT_MESSAGE(
"Testing validity of instance uid finding of frame 2", findings.front().isValid);
116 CPPUNIT_ASSERT_MESSAGE(
"Testing path of instance uid finding of frame 2", findings.front().path == instanceUID);
117 CPPUNIT_ASSERT_MESSAGE(
"Testing value of instance uid finding of frame 2", findings.front().value ==
"1.2.276.0.99.1.4.8323329.3795.1303917947.940053");
119 findings = frames[3]->GetTagValueAsString(instanceUID);
120 CPPUNIT_ASSERT_MESSAGE(
"Testing DICOMDCMTKTagScanner::GetFrameInfoList()", findings.size() == 1);
121 CPPUNIT_ASSERT_MESSAGE(
"Testing validity of instance uid finding of frame 3", findings.front().isValid);
122 CPPUNIT_ASSERT_MESSAGE(
"Testing path of instance uid finding of frame 3", findings.front().path == instanceUID);
123 CPPUNIT_ASSERT_MESSAGE(
"Testing value of instance uid finding of frame 3", findings.front().value ==
"1.2.276.0.99.1.4.8323329.3795.1303917947.940055");
section MAP_FRAME_Mapper_Settings Mapper settings For the mapping of corrected you have several settings but high interpolation errors for gray value images Right choice for label images or masks li Details of the frame selection In this tab you can specify the frames of the currently selected image that should be corrected As default all frames of an image will be corrected If you only select specific frames
DICOMTagPath & AddElement(unsigned int group, unsigned int element)
DICOMTagPath & AddAnySelection(unsigned int group, unsigned int element)
itk::SmartPointer< Self > Pointer
Class is used to identify (nested) attributes in a DICOM dataset. In contrast to the class DICOMTag...
MITK_TEST_SUITE_REGISTRATION(mitkImageToItk)
#define MITK_TEST(TESTMETHOD)
Adds a test to the current test suite.
static std::string GetTestDataFilePath(const std::string &testData)
Get the absolute path for test data.
std::list< DICOMDatasetFinding > FindingsListType
Test fixture for parameterized tests.
std::vector< std::string > StringList
std::vector< DICOMDatasetAccessingImageFrameInfo::Pointer > DICOMDatasetAccessingImageFrameList
DICOMTagPath & AddSelection(unsigned int group, unsigned int element, ItemSelectionIndex index)