SourceXtractorPlusPlus
0.10
Please provide a description of the project.
SEImplementation
SEImplementation
Segmentation
BgConvolutionImageSource.h
Go to the documentation of this file.
1
17
/*
18
* BgConvolutionImageSource.h
19
*
20
* Created on: Jun 12, 2019
21
* Author: Alejandro Alvarez
22
* Refactored out from: BackgroundConvolution.h
23
*/
24
25
#ifndef _SEIMPLEMENTATION_SEGMENTATION_BGCONVOLUTIONIMAGESOURCE_H_
26
#define _SEIMPLEMENTATION_SEGMENTATION_BGCONVOLUTIONIMAGESOURCE_H_
27
28
#include "
SEFramework/Image/MirrorImage.h
"
29
#include "
SEFramework/Image/VectorImage.h
"
30
#include "
SEFramework/Image/ProcessingImageSource.h
"
31
32
namespace
SourceXtractor
{
33
38
class
BgConvolutionImageSource
:
public
ProcessingImageSource
<DetectionImage::PixelType> {
39
public
:
40
BgConvolutionImageSource
(
std::shared_ptr
<
Image<DetectionImage::PixelType>
> image,
41
std::shared_ptr<DetectionImage>
variance,
SeFloat
threshold,
42
std::shared_ptr
<
VectorImage<SeFloat>
> kernel);
43
44
protected
:
45
46
std::string
getRepr
()
const override
;
47
48
void
generateTile
(
std::shared_ptr
<
Image<DetectionImage::PixelType>
> image,
ImageTile<DetectionImage::PixelType>
& tile,
49
int
start_x,
int
start_y,
int
width,
int
height)
const override
;
50
51
private
:
52
std::shared_ptr<DetectionImage>
m_variance
;
53
SeFloat
m_threshold
;
54
std::shared_ptr<VectorImage<SeFloat>
>
m_kernel
;
55
};
56
57
}
// end namespace SourceXtractor
58
59
#endif // _SEIMPLEMENTATION_SEGMENTATION_BGCONVOLUTIONIMAGESOURCE_H_
SourceXtractor::BgConvolutionImageSource::m_threshold
SeFloat m_threshold
Definition:
BgConvolutionImageSource.h:53
std::string
STL class.
std::shared_ptr
STL class.
SourceXtractor::BgConvolutionImageSource::BgConvolutionImageSource
BgConvolutionImageSource(std::shared_ptr< Image< DetectionImage::PixelType >> image, std::shared_ptr< DetectionImage > variance, SeFloat threshold, std::shared_ptr< VectorImage< SeFloat >> kernel)
Definition:
BgConvolutionImageSource.cpp:31
SourceXtractor::SeFloat
SeFloat32 SeFloat
Definition:
Types.h:32
SourceXtractor::BgConvolutionImageSource::m_variance
std::shared_ptr< DetectionImage > m_variance
Definition:
BgConvolutionImageSource.h:52
SourceXtractor::ProcessingImageSource
Definition:
ProcessingImageSource.h:33
SourceXtractor::Image< DetectionImage::PixelType >
SourceXtractor::BgConvolutionImageSource::generateTile
void generateTile(std::shared_ptr< Image< DetectionImage::PixelType >> image, ImageTile< DetectionImage::PixelType > &tile, int start_x, int start_y, int width, int height) const override
Definition:
BgConvolutionImageSource.cpp:43
VectorImage.h
SourceXtractor::ImageTile
Definition:
ImageTile.h:57
SourceXtractor
Definition:
Aperture.h:30
MirrorImage.h
SourceXtractor::BgConvolutionImageSource
Definition:
BgConvolutionImageSource.h:38
SourceXtractor::BgConvolutionImageSource::getRepr
std::string getRepr() const override
Human readable representation of this source.
Definition:
BgConvolutionImageSource.cpp:39
SourceXtractor::VectorImage< SeFloat >
ProcessingImageSource.h
SourceXtractor::BgConvolutionImageSource::m_kernel
std::shared_ptr< VectorImage< SeFloat > > m_kernel
Definition:
BgConvolutionImageSource.h:54
Generated by
1.8.17