SourceXtractorPlusPlus
0.13
Please provide a description of the project.
|
#include <ImageTile.h>
Public Types | |
enum | ImageType { AutoType =-1, FloatImage =0, DoubleImage, IntImage, UIntImage, LongLongImage } |
Public Member Functions | |
virtual | ~ImageTile () |
bool | isPixelInTile (int x, int y) const |
int | getPosX () const |
int | getPosY () const |
virtual int | getTileMemorySize () const =0 |
int | getWidth () const |
int | getHeight () const |
template<typename T > | |
T | getValue (int x, int y) const |
virtual void | setValue (int x, int y, float value)=0 |
virtual void | setValue (int x, int y, double value)=0 |
virtual void | setValue (int x, int y, int value)=0 |
virtual void | setValue (int x, int y, unsigned int value)=0 |
virtual void | setValue (int x, int y, std::int64_t value)=0 |
template<typename T > | |
std::shared_ptr< VectorImage< T > > | getImage () const |
virtual void * | getDataPtr ()=0 |
void | setModified (bool modified) |
bool | isModified () const |
virtual void | saveIfModified () |
ImageType | getType () const |
Static Public Member Functions | |
static std::shared_ptr< ImageTile > | create (ImageType image_type, int x, int y, int width, int height, std::shared_ptr< ImageSource > source=nullptr) |
static ImageType | getTypeValue (float) |
static ImageType | getTypeValue (double) |
static ImageType | getTypeValue (int) |
static ImageType | getTypeValue (unsigned int) |
static ImageType | getTypeValue (std::int64_t) |
static size_t | getTypeSize (ImageType image_type) |
Protected Member Functions | |
virtual void | getValue (int x, int y, float &value) const =0 |
virtual void | getValue (int x, int y, double &value) const =0 |
virtual void | getValue (int x, int y, int &value) const =0 |
virtual void | getValue (int x, int y, unsigned int &value) const =0 |
virtual void | getValue (int x, int y, std::int64_t &value) const =0 |
ImageTile (ImageType image_type, int x, int y, int width, int height, std::shared_ptr< ImageSource > source=nullptr) | |
void | createImage (ImageType image_type, int width, int height) |
Protected Attributes | |
bool | m_modified |
ImageType | m_image_type |
std::shared_ptr< ImageSource > | m_source |
int | m_x |
int | m_y |
int | m_max_x |
int | m_max_y |
std::shared_ptr< void > | m_tile_image |
Definition at line 34 of file ImageTile.h.
Enumerator | |
---|---|
AutoType | |
FloatImage | |
DoubleImage | |
IntImage | |
UIntImage | |
LongLongImage |
Definition at line 37 of file ImageTile.h.
|
inlinevirtual |
Definition at line 48 of file ImageTile.h.
References saveIfModified().
|
inlineprotected |
Definition at line 154 of file ImageTile.h.
References createImage().
|
static |
Definition at line 96 of file ImageTile.cpp.
References DoubleImage, FloatImage, ModelFitting::height, IntImage, LongLongImage, UIntImage, ModelFitting::width, x, and y.
Referenced by SourceXtractor::ProcessingImageSource< DetectionImage::PixelType >::getImageTile(), SourceXtractor::FitsImageSource::getImageTile(), SourceXtractor::TypedSplineModelWrapper< T >::getImageTile(), and SourceXtractor::ScaledImageSource< T >::getImageTile().
|
inlineprotected |
Definition at line 159 of file ImageTile.h.
References SourceXtractor::VectorImage< T >::create(), DoubleImage, FloatImage, IntImage, LongLongImage, m_tile_image, and UIntImage.
Referenced by ImageTile().
|
pure virtual |
Implemented in SourceXtractor::ImageTileImpl< T >.
Referenced by SourceXtractor::FitsImageSource::saveTile().
|
inline |
Definition at line 70 of file ImageTile.h.
Referenced by SourceXtractor::ImageTileImpl< T >::getTileMemorySize(), and SourceXtractor::FitsImageSource::saveTile().
|
inline |
Definition at line 88 of file ImageTile.h.
References getTypeValue(), m_image_type, m_tile_image, and std::static_pointer_cast().
Referenced by SourceXtractor::WeightMapImageSource::generateFromRms(), SourceXtractor::WeightMapImageSource::generateFromVariance(), SourceXtractor::WeightMapImageSource::generateFromWeight(), SourceXtractor::BgConvolutionImageSource::generateTile(), and SourceXtractor::InterpolatedImageSource< T >::generateTile().
|
inline |
Definition at line 56 of file ImageTile.h.
References m_x.
Referenced by SourceXtractor::BufferedImage< T >::copyOverlappingPixels(), and SourceXtractor::FitsImageSource::saveTile().
|
inline |
Definition at line 60 of file ImageTile.h.
References m_y.
Referenced by SourceXtractor::BufferedImage< T >::copyOverlappingPixels(), and SourceXtractor::FitsImageSource::saveTile().
|
pure virtual |
Implemented in SourceXtractor::ImageTileImpl< T >.
|
inline |
Definition at line 142 of file ImageTile.h.
References m_image_type.
Definition at line 129 of file ImageTile.h.
References DoubleImage, FloatImage, IntImage, LongLongImage, and UIntImage.
Referenced by SourceXtractor::FitsImageSource::FitsImageSource().
|
inlinestatic |
Definition at line 109 of file ImageTile.h.
References FloatImage.
Referenced by getImage(), SourceXtractor::ProcessingImageSource< DetectionImage::PixelType >::getImageTile(), SourceXtractor::TypedSplineModelWrapper< T >::getImageTile(), SourceXtractor::ScaledImageSource< T >::getImageTile(), SourceXtractor::InterpolatedImageSource< T >::getType(), SourceXtractor::ProcessingImageSource< DetectionImage::PixelType >::getType(), SourceXtractor::TypedSplineModelWrapper< T >::getType(), SourceXtractor::ScaledImageSource< T >::getType(), SourceXtractor::FitsWriter::newImage(), SourceXtractor::FitsWriter::newTemporaryImage(), and SourceXtractor::FitsReader< T >::readFile().
|
inlinestatic |
Definition at line 113 of file ImageTile.h.
References DoubleImage.
|
inlinestatic |
Definition at line 117 of file ImageTile.h.
References IntImage.
|
inlinestatic |
Definition at line 121 of file ImageTile.h.
References UIntImage.
|
inlinestatic |
Definition at line 125 of file ImageTile.h.
References LongLongImage.
|
inline |
Definition at line 75 of file ImageTile.h.
Referenced by SourceXtractor::BufferedImage< T >::copyOverlappingPixels().
|
protectedpure virtual |
Implemented in SourceXtractor::ImageTileImpl< T >.
|
protectedpure virtual |
Implemented in SourceXtractor::ImageTileImpl< T >.
|
protectedpure virtual |
Implemented in SourceXtractor::ImageTileImpl< T >.
|
protectedpure virtual |
Implemented in SourceXtractor::ImageTileImpl< T >.
|
protectedpure virtual |
Implemented in SourceXtractor::ImageTileImpl< T >.
|
inline |
Definition at line 66 of file ImageTile.h.
Referenced by SourceXtractor::ImageTileImpl< T >::getTileMemorySize(), and SourceXtractor::FitsImageSource::saveTile().
|
inline |
|
inline |
Definition at line 52 of file ImageTile.h.
References m_max_x, m_max_y, m_x, and m_y.
Referenced by SourceXtractor::ImageTileImpl< T >::getValueImpl(), and SourceXtractor::ImageTileImpl< T >::setValueImpl().
|
virtual |
Definition at line 112 of file ImageTile.cpp.
References isModified(), m_source, and setModified().
Referenced by ~ImageTile().
|
inline |
|
pure virtual |
Implemented in SourceXtractor::ImageTileImpl< T >.
Referenced by SourceXtractor::BgDFTConvolutionImageSource::generateTile().
|
pure virtual |
Implemented in SourceXtractor::ImageTileImpl< T >.
|
pure virtual |
Implemented in SourceXtractor::ImageTileImpl< T >.
|
pure virtual |
Implemented in SourceXtractor::ImageTileImpl< T >.
|
pure virtual |
Implemented in SourceXtractor::ImageTileImpl< T >.
|
protected |
Definition at line 183 of file ImageTile.h.
Referenced by getImage(), and getType().
|
protected |
Definition at line 187 of file ImageTile.h.
Referenced by getWidth(), and isPixelInTile().
|
protected |
Definition at line 187 of file ImageTile.h.
Referenced by getHeight(), and isPixelInTile().
|
protected |
Definition at line 181 of file ImageTile.h.
Referenced by isModified(), and setModified().
|
protected |
Definition at line 185 of file ImageTile.h.
Referenced by saveIfModified().
|
protected |
Definition at line 189 of file ImageTile.h.
Referenced by createImage(), SourceXtractor::ImageTileImpl< T >::getDataPtr(), getImage(), SourceXtractor::ImageTileImpl< T >::getValueImpl(), and SourceXtractor::ImageTileImpl< T >::setValueImpl().
|
protected |
Definition at line 186 of file ImageTile.h.
Referenced by getPosX(), SourceXtractor::ImageTileImpl< T >::getValueImpl(), getWidth(), isPixelInTile(), and SourceXtractor::ImageTileImpl< T >::setValueImpl().
|
protected |
Definition at line 186 of file ImageTile.h.
Referenced by getHeight(), getPosY(), SourceXtractor::ImageTileImpl< T >::getValueImpl(), isPixelInTile(), and SourceXtractor::ImageTileImpl< T >::setValueImpl().