SourceXtractorPlusPlus  0.15
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
SourceXtractor::BgConvolutionImageSource Class Reference

#include <BgConvolutionImageSource.h>

Inheritance diagram for SourceXtractor::BgConvolutionImageSource:
[legend]
Collaboration diagram for SourceXtractor::BgConvolutionImageSource:
[legend]

Public Member Functions

 BgConvolutionImageSource (std::shared_ptr< Image< DetectionImage::PixelType >> image, std::shared_ptr< DetectionImage > variance, SeFloat threshold, std::shared_ptr< VectorImage< SeFloat >> kernel)
 
- Public Member Functions inherited from SourceXtractor::ProcessingImageSource< DetectionImage::PixelType >
 ProcessingImageSource (std::shared_ptr< Image< DetectionImage::PixelType >> image)
 
virtual ~ProcessingImageSource ()=default
 
std::shared_ptr< ImageTilegetImageTile (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
 
- Public Member Functions inherited from SourceXtractor::ImageSource
 ImageSource ()
 
virtual ~ImageSource ()=default
 
virtual const std::map
< std::string, MetadataEntry
getMetadata () const
 
virtual void setMetadata (std::string, MetadataEntry)
 
- Public Member Functions inherited from std::enable_shared_from_this< ImageSource >
enable_shared_from_this (T...args)
 
operator= (T...args)
 
shared_from_this (T...args)
 
~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, ImageTileWithType< DetectionImage::PixelType > &tile, int start_x, int start_y, int width, int height) const override
 
- Protected Member Functions inherited from SourceXtractor::ProcessingImageSource< DetectionImage::PixelType >
std::string getImageRepr () const
 

Private Attributes

std::shared_ptr< DetectionImagem_variance
 
SeFloat m_threshold
 
std::shared_ptr< VectorImage
< SeFloat > > 
m_kernel
 

Detailed Description

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.

Constructor & Destructor Documentation

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.

Here is the call graph for this function:

Member Function Documentation

void SourceXtractor::BgConvolutionImageSource::generateTile ( const std::shared_ptr< Image< DetectionImage::PixelType >> &  image,
ImageTileWithType< DetectionImage::PixelType > &  tile,
int  start_x,
int  start_y,
int  width,
int  height 
) const
overrideprotectedvirtual

Implements SourceXtractor::ProcessingImageSource< DetectionImage::PixelType >.

Definition at line 66 of file BgConvolutionImageSource.cpp.

References SourceXtractor::applyKernel(), SourceXtractor::ImageTileWithType< T >::getImage(), ModelFitting::height, m_kernel, m_threshold, m_variance, std::max(), std::min(), std::tie(), and ModelFitting::width.

Here is the call graph for this function:

std::string SourceXtractor::BgConvolutionImageSource::getRepr ( ) const
overrideprotectedvirtual

Human readable representation of this source.

Implements SourceXtractor::ImageSource.

Definition at line 39 of file BgConvolutionImageSource.cpp.

References SourceXtractor::ProcessingImageSource< DetectionImage::PixelType >::getImageRepr().

Here is the call graph for this function:

Member Data Documentation

std::shared_ptr<VectorImage<SeFloat> > SourceXtractor::BgConvolutionImageSource::m_kernel
private

Definition at line 55 of file BgConvolutionImageSource.h.

Referenced by BgConvolutionImageSource(), and generateTile().

SeFloat SourceXtractor::BgConvolutionImageSource::m_threshold
private

Definition at line 54 of file BgConvolutionImageSource.h.

Referenced by generateTile().

std::shared_ptr<DetectionImage> SourceXtractor::BgConvolutionImageSource::m_variance
private

Definition at line 53 of file BgConvolutionImageSource.h.

Referenced by generateTile().


The documentation for this class was generated from the following files: