Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkDICOMDatasetAccessingImageFrameInfo.cpp
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
18 
20 ::DICOMDatasetAccessingImageFrameInfo(const std::string& filename, unsigned int frameNo)
21 :DICOMImageFrameInfo(filename, frameNo)
22 {
23 }
24 
27 {
28 }
29 
32 {
33  DICOMImageFrameList output;
34  output.reserve(input.size());
35 
36  for (auto& inputIter : input)
37  {
38  DICOMImageFrameInfo* fi = inputIter.GetPointer();
39  assert(fi);
40  output.push_back(fi);
41  }
42 
43  return output;
44 }
45 
48 {
49  DICOMDatasetList output;
50  output.reserve(input.size());
51 
52  for (auto& inputIter : input)
53  {
54  DICOMDatasetAccess* da = inputIter.GetPointer();
55  assert(da);
56  output.push_back(da);
57  }
58 
59  return output;
60 }
61 
64 {
66  output.reserve(input.size());
67 
68  for (auto& inputIter : input)
69  {
71  assert(afi);
72  output.push_back(afi);
73  }
74 
75  return output;
76 }
MITKDICOMREADER_EXPORT mitk::DICOMDatasetList ConvertToDICOMDatasetList(const DICOMDatasetAccessingImageFrameList &input)
MITKDICOMREADER_EXPORT mitk::DICOMDatasetAccessingImageFrameList ConvertToDICOMDatasetAccessingImageFrameList(const DICOMDatasetList &input)
DICOMDatasetAccessingImageFrameInfo(const std::string &filename="", unsigned int frameNo=0)
Describes a frame within a DICOM file.
Interface to datasets that is presented to sorting classes such as DICOMDatasetSorter.
static const std::string filename
std::vector< DICOMImageFrameInfo::Pointer > DICOMImageFrameList
Defines an abstract base class for DICOM image frame infos with data access.
MITKDICOMREADER_EXPORT mitk::DICOMImageFrameList ConvertToDICOMImageFrameList(const DICOMDatasetAccessingImageFrameList &input)
std::vector< DICOMDatasetAccessingImageFrameInfo::Pointer > DICOMDatasetAccessingImageFrameList
std::vector< DICOMDatasetAccess * > DICOMDatasetList