MCPcopy Create free account
hub / github.com/MITK/MITK / LoadFiles

Method LoadFiles

Modules/DICOMTesting/src/mitkTestDICOMLoading.cpp:65–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63
64
65mitk::TestDICOMLoading::ImageList
66mitk::TestDICOMLoading
67::LoadFiles( const StringList& files )
68{
69 for (auto iter = files.begin();
70 iter != files.end();
71 ++iter)
72 {
73 MITK_DEBUG << "File " << *iter;
74 }
75
76 ImageList result;
77
78 DICOMFileReader::Pointer reader = this->BuildDICOMReader();
79 reader->SetTagLookupTableToPropertyFunctor(mitk::GetDICOMPropertyForDICOMValuesFunctor);
80 reader->SetInputFiles( files );
81 reader->AnalyzeInputFiles();
82 reader->PrintOutputs(std::cout,true);
83 reader->LoadImages();
84
85 unsigned int numberOfImages = reader->GetNumberOfOutputs();
86 for (unsigned imageIndex = 0; imageIndex < numberOfImages; ++imageIndex)
87 {
88 const DICOMImageBlockDescriptor& block = reader->GetOutput(imageIndex);
89 result.push_back( block.GetMitkImage() );
90 }
91
92 return result;
93}
94
95mitk::DICOMFileReader::Pointer
96mitk::TestDICOMLoading

Callers 5

mainFunction · 0.45
mainFunction · 0.45

Calls 11

BuildDICOMReaderMethod · 0.95
PrintOutputsMethod · 0.80
GetMitkImageMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
SetInputFilesMethod · 0.45
AnalyzeInputFilesMethod · 0.45
LoadImagesMethod · 0.45
GetNumberOfOutputsMethod · 0.45
GetOutputMethod · 0.45

Tested by

no test coverage detected