SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
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
30namespace ModelFitting {
31
32template <>
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< ImageInterfaceType > ImageInterfaceTypePtr
Traits class the DataVsModelResiduals class uses for accessing its inputs.