SourceXtractorPlusPlus
0.12
Please provide a description of the project.
SEImplementation
SEImplementation
Segmentation
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
"
28
#include "
SEFramework/Image/VectorImage.h
"
29
#include "
SEFramework/Frame/Frame.h
"
30
31
namespace
SourceXtractor
{
32
36
class
BackgroundConvolution
:
public
DetectionImageFrame::ImageFilter
{
37
38
public
:
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
46
std::shared_ptr<DetectionImage>
47
processImage
(
std::shared_ptr<DetectionImage>
image,
std::shared_ptr<DetectionImage>
variance,
48
SeFloat
threshold)
const
;
49
50
private
:
51
void
normalize
();
52
53
std::shared_ptr<VectorImage<SeFloat>
>
m_convolution_filter
;
54
};
55
56
}
57
58
#endif
/* _SEIMPLEMENTATION_SEGMENTATION_BACKGROUNDCONVOLUTION_H_ */
std::shared_ptr
Types.h
SourceXtractor::BackgroundConvolution::processImage
std::shared_ptr< DetectionImage > processImage(std::shared_ptr< DetectionImage > image, std::shared_ptr< DetectionImage > variance, SeFloat threshold) const
Definition:
BackgroundConvolution.cpp:35
SourceXtractor::Frame::ImageFilter
Definition:
Frame.h:53
SourceXtractor::BackgroundConvolution::BackgroundConvolution
BackgroundConvolution(std::shared_ptr< Image< SeFloat >> convolution_filter, bool must_normalize)
Definition:
BackgroundConvolution.h:39
SourceXtractor::SeFloat
SeFloat32 SeFloat
Definition:
Types.h:32
SourceXtractor::VectorImage
Image implementation which keeps the pixel values in memory.
Definition:
VectorImage.h:53
Frame.h
VectorImage.h
SourceXtractor
Definition:
Aperture.h:30
SourceXtractor::BackgroundConvolution
Definition:
BackgroundConvolution.h:36
SourceXtractor::BackgroundConvolution::m_convolution_filter
std::shared_ptr< VectorImage< SeFloat > > m_convolution_filter
Definition:
BackgroundConvolution.h:53
SourceXtractor::Image
Interface representing an image.
Definition:
Image.h:43
SourceXtractor::BackgroundConvolution::normalize
void normalize()
Definition:
BackgroundConvolution.cpp:50
Generated by
1.8.14