|
SourceXtractorPlusPlus 0.19.2
SourceXtractor++, the next generation SExtractor
|
#include <BgDFTConvolutionImageSource.h>


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< 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. | |
| int | getHeight () const override |
| Returns the height of the image in pixels. | |
| ImageTile::ImageType | getType () const override |
Public Member Functions inherited from SourceXtractor::ImageSource | |
| ImageSource () | |
| virtual | ~ImageSource ()=default |
| virtual std::string | getRepr () const =0 |
| Human readable representation of this source. | |
| virtual void | saveTile (ImageTile &tile)=0 |
| virtual std::shared_ptr< ImageTile > | getImageTile (int x, int y, int width, int height) const =0 |
| virtual int | getWidth () const =0 |
| Returns the width of the image in pixels. | |
| virtual int | getHeight () const =0 |
| Returns the height of the image in pixels. | |
| virtual ImageTile::ImageType | getType () const =0 |
| virtual const std::map< std::string, MetadataEntry > & | getMetadata () const |
| virtual void | setMetadata (const std::string &key, const MetadataEntry &value) |
Public Member Functions inherited from std::enable_shared_from_this< ImageSource > | |
| 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 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. | |
| 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 > | |
| virtual void | generateTile (const std::shared_ptr< Image< DetectionImage::PixelType > > &image, ImageTileWithType< DetectionImage::PixelType > &tile, int x, int y, int width, int height) const=0 |
| std::string | getImageRepr () const |
Private Attributes | |
| std::shared_ptr< DetectionImage > | m_variance |
| DetectionImage::PixelType | m_threshold |
| ConvolutionType | m_convolution |
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.
|
protected |
Definition at line 50 of file BgDFTConvolutionImageSource.h.
|
protected |
Definition at line 47 of file BgDFTConvolutionImageSource.h.
| 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.
|
overrideprotected |
Definition at line 45 of file BgDFTConvolutionImageSource.cpp.
References SourceXtractor::DFTConvolution< T, TPadding >::convolve(), SourceXtractor::FunctionalImage< T, I >::create(), SourceXtractor::SubImage< T >::create(), SourceXtractor::VectorImage< T >::create(), SourceXtractor::MaskedImage< T, M, Operator >::create(), SourceXtractor::DFTConvolution< T, TPadding >::getHeight(), SourceXtractor::DFTConvolution< T, TPadding >::getWidth(), m_convolution, m_threshold, m_variance, std::max(), std::min(), SourceXtractor::ImageTileWithType< T >::setValue(), x, and y.

|
overrideprotectedvirtual |
Human readable representation of this source.
Implements SourceXtractor::ImageSource.
Definition at line 41 of file BgDFTConvolutionImageSource.cpp.
References SourceXtractor::ProcessingImageSource< DetectionImage::PixelType >::getImageRepr().

|
private |
Definition at line 61 of file BgDFTConvolutionImageSource.h.
Referenced by generateTile().
|
private |
Definition at line 60 of file BgDFTConvolutionImageSource.h.
Referenced by generateTile().
|
private |
Definition at line 59 of file BgDFTConvolutionImageSource.h.
Referenced by generateTile().