SourceXtractorPlusPlus
0.13
Please provide a description of the project.
|
#include <BgConvolutionImageSource.h>
Public Member Functions | |
BgConvolutionImageSource (std::shared_ptr< Image< DetectionImage::PixelType >> image, std::shared_ptr< DetectionImage > variance, SeFloat threshold, std::shared_ptr< VectorImage< SeFloat >> kernel) | |
![]() | |
ProcessingImageSource (std::shared_ptr< Image< DetectionImage::PixelType >> image) | |
virtual | ~ProcessingImageSource ()=default |
std::shared_ptr< ImageTile > | getImageTile (int x, int y, int width, int height) const override |
void | saveTile (ImageTile &) override |
int | getWidth () const override |
Returns the width of the image in pixels. More... | |
int | getHeight () const override |
Returns the height of the image in pixels. More... | |
ImageTile::ImageType | getType () const override |
![]() | |
ImageSource () | |
virtual | ~ImageSource ()=default |
virtual int | getWidth () const =0 |
Returns the width of the image in pixels. More... | |
virtual int | getHeight () const =0 |
Returns the height of the image in pixels. More... | |
virtual ImageTile::ImageType | getType () const =0 |
virtual const std::map< std::string, MetadataEntry > | getMetadata () const |
virtual void | setMetadata (std::string key, MetadataEntry value) |
![]() | |
T | enable_shared_from_this (T... args) |
T | operator= (T... args) |
T | shared_from_this (T... args) |
T | ~enable_shared_from_this (T... args) |
Protected Member Functions | |
std::string | getRepr () const override |
Human readable representation of this source. More... | |
void | generateTile (const std::shared_ptr< Image< DetectionImage::PixelType >> &image, ImageTile &tile, int start_x, int start_y, int width, int height) const override |
![]() | |
virtual void | generateTile (const std::shared_ptr< Image< DetectionImage::PixelType >> &image, ImageTile &tile, int x, int y, int width, int height) const=0 |
std::string | getImageRepr () const |
Private Attributes | |
std::shared_ptr< DetectionImage > | m_variance |
SeFloat | m_threshold |
std::shared_ptr< VectorImage< SeFloat > > | m_kernel |
Implement an image source using direct convolution of the filter over the image. This approach is normally faster for small kernels
Definition at line 38 of file BgConvolutionImageSource.h.
SourceXtractor::BgConvolutionImageSource::BgConvolutionImageSource | ( | std::shared_ptr< Image< DetectionImage::PixelType >> | image, |
std::shared_ptr< DetectionImage > | variance, | ||
SeFloat | threshold, | ||
std::shared_ptr< VectorImage< SeFloat >> | kernel | ||
) |
Definition at line 31 of file BgConvolutionImageSource.cpp.
References SourceXtractor::VectorImage< T >::create(), and m_kernel.
|
overrideprotected |
Definition at line 66 of file BgConvolutionImageSource.cpp.
References SourceXtractor::applyKernel(), SourceXtractor::ImageTile::getImage(), m_kernel, m_threshold, m_variance, std::max(), std::min(), and std::tie().
|
overrideprotectedvirtual |
Human readable representation of this source.
Implements SourceXtractor::ImageSource.
Definition at line 39 of file BgConvolutionImageSource.cpp.
References SourceXtractor::ProcessingImageSource< DetectionImage::PixelType >::getImageRepr().
|
private |
Definition at line 54 of file BgConvolutionImageSource.h.
Referenced by BgConvolutionImageSource(), and generateTile().
|
private |
Definition at line 53 of file BgConvolutionImageSource.h.
Referenced by generateTile().
|
private |
Definition at line 52 of file BgConvolutionImageSource.h.
Referenced by generateTile().