SourceXtractorPlusPlus
0.11
Please provide a description of the project.
|
Image implementation which keeps the pixel values in memory. More...
#include <VectorImage.h>
Public Member Functions | |
std::string | getRepr () const final |
Get a string identifying this image in a human readable manner. More... | |
int | getHeight () const final |
Returns the height of the image in pixels. More... | |
int | getWidth () const final |
Returns the width of the image in pixels. More... | |
T | getValue (int x, int y) const final |
Returns the value of the pixel with the coordinates (x,y) More... | |
void | setValue (int x, int y, T value) final |
void | setValue (PixelCoordinate pc, T value) |
T & | at (int x, int y) |
void | fillValue (T value) |
const std::vector< T > & | getData () const |
std::vector< T > & | getData () |
virtual | ~VectorImage ()=default |
Destructor. More... | |
virtual std::shared_ptr< ImageChunk< T > > | getChunk (int x, int y, int width, int height) const override |
![]() | |
virtual | ~ImageBase () |
![]() | |
virtual | ~Image ()=default |
Destructor. More... | |
T | getValue (PixelCoordinate pc) const |
![]() | |
T | enable_shared_from_this (T... args) |
T | operator= (T... args) |
T | shared_from_this (T... args) |
T | ~enable_shared_from_this (T... args) |
Static Public Member Functions | |
template<typename... Args> | |
static std::shared_ptr< VectorImage< T > > | create (Args &&... args) |
Protected Member Functions | |
VectorImage (int width, int height) | |
VectorImage (int width, int height, std::vector< T > data) | |
template<typename Iter > | |
VectorImage (int width, int height, Iter data_begin, Iter data_end, typename std::enable_if< std::is_base_of< std::input_iterator_tag, typename std::iterator_traits< Iter >::iterator_category >::value and std::is_same< T, typename std::iterator_traits< Iter >::value_type >::value >::type *=0) | |
VectorImage (const Image< T > &other_image) | |
VectorImage (const std::shared_ptr< const Image< T >> &other_image) | |
Private Attributes | |
int | m_width |
int | m_height |
std::vector< T > | m_data |
Additional Inherited Members | |
![]() | |
using | PixelType = T |
Image implementation which keeps the pixel values in memory.
The pixel values are kept in a vector. The first element of the vector is the pixel with coordinate (0,0) and the following elements have increasing x and y indices, with the x index (in the width direction) increasing more rapidly. This means the order of the vector elements should be:
(0,0), (1,0), (2,0), ..., (width-1,0), (0,1), (1,1), ..., (width-1,height-1)
T | the type of the pixel values |
Definition at line 53 of file VectorImage.h.
|
inlineprotected |
Definition at line 56 of file VectorImage.h.
|
inlineprotected |
Definition at line 60 of file VectorImage.h.
|
inlineprotected |
Definition at line 67 of file VectorImage.h.
|
inlineprotected |
Definition at line 76 of file VectorImage.h.
|
inlineprotected |
Definition at line 85 of file VectorImage.h.
|
virtualdefault |
Destructor.
|
inline |
Definition at line 118 of file VectorImage.h.
Referenced by SourceXtractor::VectorImage< SeFloat >::getValue(), and SourceXtractor::VectorImage< SeFloat >::setValue().
|
inlinestatic |
Definition at line 89 of file VectorImage.h.
Referenced by SourceXtractor::SEBackgroundLevelAnalyzer::analyzeBackground(), SourceXtractor::SimpleBackgroundAnalyzer::analyzeBackground(), BenchConvolution::benchmark(), SourceXtractor::BgConvolutionImageSource::BgConvolutionImageSource(), SourceXtractor::DetectionFrameGroupStampTask::computeProperties(), SourceXtractor::PsfTask::computeProperties(), SourceXtractor::DetectionFrameSourceStampTask::computeProperties(), SourceXtractor::MoffatModelFittingTask::computeProperties(), SourceXtractor::DirectConvolution< T, TPadding >::convolve(), SourceXtractor::FlexibleModelFittingTask::createImageCopy(), SourceXtractor::FlexibleModelFittingTask::createWeightImage(), ModelFitting::ImageTraits< ImageInterfaceTypePtr >::factory(), ModelFitting::ImageTraits< WriteableInterfaceTypePtr >::factory(), SourceXtractor::PsfPluginConfig::generateGaussianPsf(), BenchBackgroundConvolution::generateImage(), BenchConvolution::generateImage(), SourceXtractor::BgDFTConvolutionImageSource::generateTile(), SourceXtractor::ProcessedImage< T, P >::getChunk(), SourceXtractor::SegmentationConfig::getDefaultFilter(), SourceXtractor::VariablePsf::getPsf(), SourceXtractor::ImagePsf::getScaledKernel(), SourceXtractor::ImageMode< T >::ImageMode(), SourceXtractor::ImageTile< T >::ImageTile(), SourceXtractor::SegmentationConfig::loadASCIIFilter(), TestImage::mainMethod(), SourceXtractor::MedianFilter< T >::operator()(), SourceXtractor::MultiThresholdPartitionStep::partition(), SourceXtractor::readImage(), and SourceXtractor::readPsfEx().
|
inline |
Definition at line 123 of file VectorImage.h.
|
inlineoverridevirtual |
Reimplemented from SourceXtractor::ImageBase< T >.
Definition at line 140 of file VectorImage.h.
|
inline |
Definition at line 131 of file VectorImage.h.
|
inline |
Definition at line 127 of file VectorImage.h.
Referenced by SourceXtractor::getMedian().
|
inlinefinalvirtual |
Returns the height of the image in pixels.
Implements SourceXtractor::Image< T >.
Definition at line 97 of file VectorImage.h.
|
inlinefinalvirtual |
Get a string identifying this image in a human readable manner.
Implements SourceXtractor::Image< T >.
Definition at line 93 of file VectorImage.h.
|
inlinefinalvirtual |
Returns the value of the pixel with the coordinates (x,y)
Implements SourceXtractor::Image< T >.
Definition at line 106 of file VectorImage.h.
|
inlinefinalvirtual |
Returns the width of the image in pixels.
Implements SourceXtractor::Image< T >.
Definition at line 101 of file VectorImage.h.
|
inlinefinalvirtual |
Implements SourceXtractor::WriteableImage< T >.
Definition at line 110 of file VectorImage.h.
Referenced by SourceXtractor::ImageMode< T >::processCell(), SourceXtractor::VectorImage< SeFloat >::setValue(), and SourceXtractor::VectorImage< SeFloat >::VectorImage().
|
inline |
Definition at line 114 of file VectorImage.h.
|
private |
Definition at line 148 of file VectorImage.h.
Referenced by SourceXtractor::VectorImage< SeFloat >::at(), SourceXtractor::VectorImage< SeFloat >::fillValue(), SourceXtractor::VectorImage< SeFloat >::getChunk(), SourceXtractor::VectorImage< SeFloat >::getData(), and SourceXtractor::VectorImage< SeFloat >::VectorImage().
|
private |
Definition at line 147 of file VectorImage.h.
Referenced by SourceXtractor::VectorImage< SeFloat >::at(), SourceXtractor::VectorImage< SeFloat >::getHeight(), SourceXtractor::VectorImage< SeFloat >::getRepr(), and SourceXtractor::VectorImage< SeFloat >::VectorImage().
|
private |
Definition at line 146 of file VectorImage.h.
Referenced by SourceXtractor::VectorImage< SeFloat >::at(), SourceXtractor::VectorImage< SeFloat >::getChunk(), SourceXtractor::VectorImage< SeFloat >::getRepr(), SourceXtractor::VectorImage< SeFloat >::getWidth(), and SourceXtractor::VectorImage< SeFloat >::VectorImage().