SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
BackgroundConvolution.h
Go to the documentation of this file.
1
17/*
18 * BackgroundConvolution.h
19 *
20 * Created on: Oct 12, 2016
21 * Author: mschefer
22 */
23
24#ifndef _SEIMPLEMENTATION_SEGMENTATION_BACKGROUNDCONVOLUTION_H_
25#define _SEIMPLEMENTATION_SEGMENTATION_BACKGROUNDCONVOLUTION_H_
26
27#include "SEUtils/Types.h"
30
31namespace SourceXtractor {
32
36class BackgroundConvolution : public DetectionImageFrame::ImageFilter {
37
38public:
39 BackgroundConvolution(std::shared_ptr<Image<SeFloat>> convolution_filter, bool must_normalize)
40 : m_convolution_filter(VectorImage<SeFloat>::create(*convolution_filter)) {
41 if (must_normalize) {
42 normalize();
43 }
44 }
45
48 SeFloat threshold) const;
49
50private:
51 void normalize();
52
54};
55
56}
57
58#endif /* _SEIMPLEMENTATION_SEGMENTATION_BACKGROUNDCONVOLUTION_H_ */
BackgroundConvolution(std::shared_ptr< Image< SeFloat > > convolution_filter, bool must_normalize)
std::shared_ptr< DetectionImage > processImage(std::shared_ptr< DetectionImage > image, std::shared_ptr< DetectionImage > variance, SeFloat threshold) const
std::shared_ptr< VectorImage< SeFloat > > m_convolution_filter
Interface representing an image.
Definition Image.h:44
Image implementation which keeps the pixel values in memory.
Definition VectorImage.h:52
SeFloat32 SeFloat
Definition Types.h:32