SourceXtractorPlusPlus
0.15
Please provide a description of the project.
SEImplementation
SEImplementation
Segmentation
BgDFTConvolutionImageSource.h
Go to the documentation of this file.
1
17
/*
18
* BgDFTConvolutionImageSource.h
19
*
20
* Created on: Jun 12, 2019
21
* Author: Alejandro Alvarez
22
* Refactored out from: BackgroundConvolution.h
23
*/
24
25
#ifndef _SEIMPLEMENTATION_SEGMENTATION_BGDFTCONVOLUTIONIMAGESOURCE_H_
26
#define _SEIMPLEMENTATION_SEGMENTATION_BGDFTCONVOLUTIONIMAGESOURCE_H_
27
28
#include "
SEFramework/Convolution/DFT.h
"
29
#include "
SEFramework/Image/PaddedImage.h
"
30
#include "
SEFramework/Image/VectorImage.h
"
31
#include "
SEFramework/Image/ProcessingImageSource.h
"
32
33
namespace
SourceXtractor
{
38
class
BgDFTConvolutionImageSource
:
public
ProcessingImageSource
<DetectionImage::PixelType> {
39
public
:
40
BgDFTConvolutionImageSource
(
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
// Constant padded
47
using
PaddedType
=
PaddedImage<DetectionImage::PixelType>
;
48
49
// Discrete Fourier Transform convolution, which is faster for big kernels
50
using
ConvolutionType
=
DFTConvolution<DetectionImage::PixelType, PaddedType>
;
51
52
std::string
getRepr
()
const override
;
53
54
void
generateTile
(
const
std::shared_ptr
<
Image<DetectionImage::PixelType>
>& image,
55
ImageTileWithType<DetectionImage::PixelType>
& tile,
56
int
start_x,
int
start_y,
int
width,
int
height)
const override
;
57
58
private
:
59
std::shared_ptr<DetectionImage>
m_variance
;
60
DetectionImage::PixelType
m_threshold
;
61
ConvolutionType
m_convolution
;
62
};
63
64
}
// end namespace SourceXtractor
65
66
#endif
// _SEIMPLEMENTATION_SEGMENTATION_BGDFTCONVOLUTIONIMAGESOURCE_H_
DFT.h
PaddedImage.h
ProcessingImageSource.h
VectorImage.h
std::string
SourceXtractor::BgDFTConvolutionImageSource
Definition:
BgDFTConvolutionImageSource.h:38
SourceXtractor::BgDFTConvolutionImageSource::getRepr
std::string getRepr() const override
Human readable representation of this source.
Definition:
BgDFTConvolutionImageSource.cpp:41
SourceXtractor::BgDFTConvolutionImageSource::m_threshold
DetectionImage::PixelType m_threshold
Definition:
BgDFTConvolutionImageSource.h:60
SourceXtractor::BgDFTConvolutionImageSource::BgDFTConvolutionImageSource
BgDFTConvolutionImageSource(std::shared_ptr< Image< DetectionImage::PixelType >> image, std::shared_ptr< DetectionImage > variance, SeFloat threshold, std::shared_ptr< VectorImage< SeFloat >> kernel)
Definition:
BgDFTConvolutionImageSource.cpp:34
SourceXtractor::BgDFTConvolutionImageSource::m_variance
std::shared_ptr< DetectionImage > m_variance
Definition:
BgDFTConvolutionImageSource.h:59
SourceXtractor::BgDFTConvolutionImageSource::generateTile
void generateTile(const std::shared_ptr< Image< DetectionImage::PixelType >> &image, ImageTileWithType< DetectionImage::PixelType > &tile, int start_x, int start_y, int width, int height) const override
Definition:
BgDFTConvolutionImageSource.cpp:45
SourceXtractor::BgDFTConvolutionImageSource::m_convolution
ConvolutionType m_convolution
Definition:
BgDFTConvolutionImageSource.h:61
SourceXtractor::DFTConvolution< DetectionImage::PixelType, PaddedType >
SourceXtractor::ImageTileWithType
Definition:
ImageTile.h:160
SourceXtractor::Image
Interface representing an image.
Definition:
Image.h:43
SourceXtractor::Image::PixelType
T PixelType
Definition:
Image.h:47
SourceXtractor::PaddedImage
Definition:
PaddedImage.h:76
SourceXtractor::ProcessingImageSource
Definition:
ProcessingImageSource.h:33
SourceXtractor::VectorImage
Image implementation which keeps the pixel values in memory.
Definition:
VectorImage.h:52
SourceXtractor
Definition:
Aperture.h:30
SourceXtractor::SeFloat
SeFloat32 SeFloat
Definition:
Types.h:32
std::shared_ptr
Generated by
1.9.1