SourceXtractorPlusPlus
0.8
Please provide a description of the project.
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
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::Frame::ImageFilter
Definition:
Frame.h:39
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::BackgroundConvolution
Definition:
BackgroundConvolution.h:36
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::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.5