SourceXtractorPlusPlus  0.10
Please provide a description of the project.
VectorImageDataVsModelInputTraits.h
Go to the documentation of this file.
1 
17 /*
18  * VectorImageDataVsModelInputTraits.h
19  *
20  * Created on: Sep 20, 2017
21  * Author: mschefer
22  */
23 
24 #ifndef _SEIMPLEMENTATION_IMAGE_VECTORIMAGEDATAVSMODELINPUTTRAITS_H_
25 #define _SEIMPLEMENTATION_IMAGE_VECTORIMAGEDATAVSMODELINPUTTRAITS_H_
26 
29 
30 namespace ModelFitting {
31 
32 template <>
34 
35  using iterator = decltype(ImageInterfaceTypePtr()->getData().begin());
36 
38  return input->getData().begin();
39  }
40 
42  return input->getData().end();
43  }
44 
45  static size_t size(const ImageInterfaceTypePtr& input) {
46  return input->getData().size();
47  }
48 
49 };
50 
51 } // end of namespace ModelFitting
52 
53 
54 
55 
56 #endif /* _SEIMPLEMENTATION_IMAGE_VECTORIMAGEDATAVSMODELINPUTTRAITS_H_ */
STL class.
static iterator begin(InputType &input)
Returns an iterator to the first element of the input.
Traits class the DataVsModelResiduals class uses for accessing its inputs.
decltype(ImageInterfaceTypePtr() ->getData().begin()) iterator
std::shared_ptr< ImageInterfaceType > ImageInterfaceTypePtr