SourceXtractorPlusPlus  0.15
Please provide a description of the project.
Public Member Functions | Protected Types | Protected Member Functions | Private Attributes | List of all members
SourceXtractor::BgDFTConvolutionImageSource Class Reference

#include <BgDFTConvolutionImageSource.h>

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

Public Member Functions

 BgDFTConvolutionImageSource (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, MetadataEntrygetMetadata () 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 Types

using PaddedType = PaddedImage< DetectionImage::PixelType >
 
using ConvolutionType = DFTConvolution< DetectionImage::PixelType, PaddedType >
 

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
 
DetectionImage::PixelType m_threshold
 
ConvolutionType m_convolution
 

Detailed Description

Implement an image source using direct convolution of the filter over the image. This approach is normally faster for big kernels

Definition at line 38 of file BgDFTConvolutionImageSource.h.

Member Typedef Documentation

◆ ConvolutionType

Definition at line 50 of file BgDFTConvolutionImageSource.h.

◆ PaddedType

Definition at line 47 of file BgDFTConvolutionImageSource.h.

Constructor & Destructor Documentation

◆ BgDFTConvolutionImageSource()

SourceXtractor::BgDFTConvolutionImageSource::BgDFTConvolutionImageSource ( std::shared_ptr< Image< DetectionImage::PixelType >>  image,
std::shared_ptr< DetectionImage variance,
SeFloat  threshold,
std::shared_ptr< VectorImage< SeFloat >>  kernel 
)

Definition at line 34 of file BgDFTConvolutionImageSource.cpp.

Member Function Documentation

◆ generateTile()

void SourceXtractor::BgDFTConvolutionImageSource::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

◆ getRepr()

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

Human readable representation of this source.

Implements SourceXtractor::ImageSource.

Definition at line 41 of file BgDFTConvolutionImageSource.cpp.

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

Here is the call graph for this function:

Member Data Documentation

◆ m_convolution

ConvolutionType SourceXtractor::BgDFTConvolutionImageSource::m_convolution
private

Definition at line 61 of file BgDFTConvolutionImageSource.h.

Referenced by generateTile().

◆ m_threshold

DetectionImage::PixelType SourceXtractor::BgDFTConvolutionImageSource::m_threshold
private

Definition at line 60 of file BgDFTConvolutionImageSource.h.

Referenced by generateTile().

◆ m_variance

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

Definition at line 59 of file BgDFTConvolutionImageSource.h.

Referenced by generateTile().


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