SourceXtractorPlusPlus
0.16
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 ()=default |
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 |
virtual void * | getDataPtr ()=0 |
void | setModified (bool modified) |
bool | isModified () const |
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) | |
ImageTile (const ImageTile &)=delete | |
ImageTile (ImageTile &&)=delete | |
ImageTile & | operator= (const ImageTile &)=delete |
ImageTile & | operator= (ImageTile &&)=delete |
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 |
Definition at line 34 of file ImageTile.h.
Enumerator | |
---|---|
AutoType | |
FloatImage | |
DoubleImage | |
IntImage | |
UIntImage | |
LongLongImage |
Definition at line 37 of file ImageTile.h.
|
virtualdefault |
|
inlineprotected |
Definition at line 141 of file ImageTile.h.
|
protecteddelete |
|
protecteddelete |
|
static |
Definition at line 24 of file ImageTile.cpp.
References DoubleImage, FloatImage, IntImage, LongLongImage, UIntImage, x, and y.
Referenced by SourceXtractor::ScaledImageSource< T >::getImageTile(), SourceXtractor::FitsImageSource::getImageTile(), and SourceXtractor::TypedSplineModelWrapper< T >::getImageTile().
|
pure virtual |
Implemented in SourceXtractor::ImageTileWithType< T >.
Referenced by SourceXtractor::FitsImageSource::saveTile().
|
inline |
Definition at line 68 of file ImageTile.h.
Referenced by SourceXtractor::ImageTileWithType< T >::getTileMemorySize(), and SourceXtractor::FitsImageSource::saveTile().
|
inline |
Definition at line 54 of file ImageTile.h.
References m_x.
Referenced by SourceXtractor::BufferedImage< T >::copyOverlappingPixels(), and SourceXtractor::FitsImageSource::saveTile().
|
inline |
Definition at line 58 of file ImageTile.h.
References m_y.
Referenced by SourceXtractor::BufferedImage< T >::copyOverlappingPixels(), and SourceXtractor::FitsImageSource::saveTile().
|
pure virtual |
Implemented in SourceXtractor::ImageTileWithType< T >.
|
inline |
Definition at line 130 of file ImageTile.h.
References m_image_type.
Definition at line 117 of file ImageTile.h.
References DoubleImage, FloatImage, IntImage, LongLongImage, and UIntImage.
Referenced by SourceXtractor::FitsImageSource::FitsImageSource().
|
inlinestatic |
Definition at line 101 of file ImageTile.h.
References DoubleImage.
|
inlinestatic |
Definition at line 97 of file ImageTile.h.
References FloatImage.
Referenced by SourceXtractor::ScaledImageSource< T >::getImageTile(), SourceXtractor::TypedSplineModelWrapper< T >::getImageTile(), SourceXtractor::InterpolatedImageSource< T >::getType(), SourceXtractor::ProcessingImageSource< T >::getType(), SourceXtractor::ScaledImageSource< T >::getType(), SourceXtractor::TypedSplineModelWrapper< T >::getType(), SourceXtractor::FitsWriter::newImage(), SourceXtractor::FitsWriter::newTemporaryImage(), and SourceXtractor::FitsReader< T >::readFile().
|
inlinestatic |
Definition at line 105 of file ImageTile.h.
References IntImage.
|
inlinestatic |
Definition at line 113 of file ImageTile.h.
References LongLongImage.
|
inlinestatic |
Definition at line 109 of file ImageTile.h.
References UIntImage.
|
inline |
Definition at line 73 of file ImageTile.h.
|
protectedpure virtual |
Implemented in SourceXtractor::ImageTileWithType< T >.
|
protectedpure virtual |
Implemented in SourceXtractor::ImageTileWithType< T >.
|
protectedpure virtual |
Implemented in SourceXtractor::ImageTileWithType< T >.
|
protectedpure virtual |
Implemented in SourceXtractor::ImageTileWithType< T >.
|
protectedpure virtual |
Implemented in SourceXtractor::ImageTileWithType< T >.
|
inline |
Definition at line 64 of file ImageTile.h.
Referenced by SourceXtractor::ImageTileWithType< T >::getTileMemorySize(), and SourceXtractor::FitsImageSource::saveTile().
|
inline |
|
inline |
Definition at line 50 of file ImageTile.h.
References m_max_x, m_max_y, m_x, m_y, x, and y.
Referenced by SourceXtractor::ImageTileWithType< T >::getValueImpl(), and SourceXtractor::ImageTileWithType< T >::setValueImpl().
void SourceXtractor::ImageTile::saveIfModified | ( | ) |
Definition at line 40 of file ImageTile.cpp.
References isModified(), m_source, and setModified().
Referenced by SourceXtractor::ImageTileWithType< T >::~ImageTileWithType().
|
inline |
|
pure virtual |
Implemented in SourceXtractor::ImageTileWithType< T >.
|
pure virtual |
Implemented in SourceXtractor::ImageTileWithType< T >.
|
pure virtual |
Implemented in SourceXtractor::ImageTileWithType< T >.
|
pure virtual |
Implemented in SourceXtractor::ImageTileWithType< T >.
|
pure virtual |
Implemented in SourceXtractor::ImageTileWithType< T >.
|
protected |
Definition at line 151 of file ImageTile.h.
Referenced by getType().
|
protected |
Definition at line 154 of file ImageTile.h.
Referenced by getWidth(), and isPixelInTile().
|
protected |
Definition at line 154 of file ImageTile.h.
Referenced by getHeight(), and isPixelInTile().
|
protected |
Definition at line 150 of file ImageTile.h.
Referenced by isModified(), and setModified().
|
protected |
Definition at line 152 of file ImageTile.h.
Referenced by saveIfModified().
|
protected |
Definition at line 153 of file ImageTile.h.
Referenced by getPosX(), SourceXtractor::ImageTileWithType< T >::getValueImpl(), getWidth(), isPixelInTile(), and SourceXtractor::ImageTileWithType< T >::setValueImpl().
|
protected |
Definition at line 153 of file ImageTile.h.
Referenced by getHeight(), getPosY(), SourceXtractor::ImageTileWithType< T >::getValueImpl(), isPixelInTile(), and SourceXtractor::ImageTileWithType< T >::setValueImpl().