SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
ImageProcessingList.h
Go to the documentation of this file.
1
17/*
18 * ImageProcessingList.h
19 *
20 * Created on: Sep 15, 2016
21 * Author: mschefer
22 */
23
24#ifndef _SEFRAMEWORK_IMAGE_IMAGEPROCESSINGLIST_H_
25#define _SEFRAMEWORK_IMAGE_IMAGEPROCESSINGLIST_H_
26
27#include <memory>
28#include <vector>
29
31
32namespace SourceXtractor {
33
34template<typename T>
36public:
37 virtual ~ImageProcessingList() = default;
38
40 : m_processing_list(processing_list) {}
41
43 auto processed_image = image;
44 for (auto& processing_step : m_processing_list) {
45 processed_image = processing_step->processImage(processed_image);
46 }
47
48 return processed_image;
49 }
51 auto processed_image = image;
52 for (auto& processing_step : m_processing_list) {
53 processed_image = processing_step->processImage(processed_image, variance, threshold);
54 }
55
56 return processed_image;
57 }
58
59private:
61
62};
63
65
66}
67
68#endif /* SEFRAMEWORK_SEFRAMEWORK_IMAGE_IMAGEPROCESSINGLIST_H_ */
std::vector< std::shared_ptr< ImageProcessing< DetectionImage::PixelType > > > m_processing_list
virtual ~ImageProcessingList()=default
std::shared_ptr< Image< T > > processImage(std::shared_ptr< Image< T > > image, std::shared_ptr< Image< T > > variance, T threshold) const override
std::shared_ptr< Image< T > > processImage(std::shared_ptr< Image< T > > image) const override
ImageProcessingList(const std::vector< std::shared_ptr< ImageProcessing< T > > > &processing_list)
Interface representing an image.
Definition Image.h:44
ImageProcessingList< DetectionImage::PixelType > DetectionImageProcessingList