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_ */
std::shared_ptr
STL class.
ModelFitting::DataVsModelInputTraits::begin
static iterator begin(InputType &input)
Returns an iterator to the first element of the input.
Definition: DataVsModelInputTraits.h:57
ModelFitting::DataVsModelInputTraits< ImageInterfaceTypePtr >::iterator
decltype(ImageInterfaceTypePtr() ->getData().begin()) iterator
Definition: VectorImageDataVsModelInputTraits.h:35
DataVsModelInputTraits.h
ModelFitting::DataVsModelInputTraits
Traits class the DataVsModelResiduals class uses for accessing its inputs.
Definition: DataVsModelInputTraits.h:50
ImageInterfaceTraits.h
ModelFitting::DataVsModelInputTraits< ImageInterfaceTypePtr >::size
static size_t size(const ImageInterfaceTypePtr &input)
Definition: VectorImageDataVsModelInputTraits.h:45
ModelFitting::ImageInterfaceTypePtr
std::shared_ptr< ImageInterfaceType > ImageInterfaceTypePtr
Definition: ImageInterfaceTraits.h:51
ModelFitting::DataVsModelInputTraits< ImageInterfaceTypePtr >::end
static iterator end(ImageInterfaceTypePtr &input)
Definition: VectorImageDataVsModelInputTraits.h:41
ModelFitting
Definition: AsinhChiSquareComparator.h:30
ModelFitting::DataVsModelInputTraits< ImageInterfaceTypePtr >::begin
static iterator begin(ImageInterfaceTypePtr &input)
Definition: VectorImageDataVsModelInputTraits.h:37