TwiceAsNice  2019-02-18
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Private Types | Static Private Member Functions | Friends | List of all members
Basda::Image< Type > Class Template Reference

#include <Image.h>

Inheritance diagram for Basda::Image< Type >:
Inheritance graph
Collaboration diagram for Basda::Image< Type >:
Collaboration graph

Public Member Functions

virtual ~Image ()
 
 Image ()
 
 Image (const ImageVar &_image)
 
 Image (const Basda::ImageHeader &_header)
 
 Image (const Nice::Size &_size)
 
 Image (const Nice::Size &_size, int _bin)
 
 Image (const Nice::Rect &_rect)
 
 Image (const Nice::Size &_size, const Nice::Point &_ref)
 
 Image (const Nice::Size &_size, const Nice::Point &_ref, int _bin)
 
 Image (const Type *_data, const Basda::ImageHeader &_header)
 
 Image (const Type *_data, const Nice::Size &_size, const Nice::Point &_ref=Nice::Point(0, 0), int _bin=1)
 
 Image (const SeqType &_data, const Nice::Size &_size, const Nice::Point &_ref=Nice::Point(0, 0), int _bin=1)
 
void swap (Image< Type > &)
 
SeqType getAllPixels ()
 
 operator ImageBase ()
 
ImageBase toImageBase ()
 
int pix_size () const
 
bool load (const char *, const char *=0, int=-1)
 
void save (const char *, const char *)
 
bool loadFits (const std::string &_filename, size_t _index=0)
 
bool saveFits (const std::string &_filename)
 Write the data as an image into the primary HDU of a FITS file. More...
 
bool saveFitsWithCards (const std::string &_filename, Basda::VinoFitsCardBox *fcards=0)
 Write the data as an image into the primary HDU of a FITS file. More...
 
bool addFits (fitsfile *_fitshd)
 
const TypegetPix (size_t colIndx, size_t rowIndx) const
 
void setPix (size_t colIndx, size_t rowIndx, const Type &_pix)
 
Typedata ()
 
const Typedata () const
 
Typepix (size_t colIndx, size_t rowIndx)
 
const Typepix (size_t colIndx, size_t rowIndx) const
 
Imagecrop (const Image &_src, const Nice::Rect &_window, int _bin=1)
 Generate a new image by cropping this existing one. If the window parameter has the same size and origin as this image, the function effectively just re-bins the existing rectangle by co-adding values of the existing pixels. More...
 
Imagefill (Type _val)
 Fill all pixels with a constant value. More...
 
Imagenoise (double _dist)
 
Imagestar (const Nice::Point &_p, double _radius, double _scale)
 
Imagecircle (const Nice::Point &_p, double _radius, Type _val, bool _filled=false)
 
bool operator== (const Image &_image)
 
virtual ~Image ()
 
 Image ()
 
 Image (const ImageVar &_image)
 
 Image (const Basda::ImageHeader &_header)
 
 Image (const Nice::Size &_size)
 
 Image (const Nice::Size &_size, int _bin)
 
 Image (const Nice::Rect &_rect)
 
 Image (const Nice::Size &_size, const Nice::Point &_ref)
 
 Image (const Nice::Size &_size, const Nice::Point &_ref, int _bin)
 
 Image (const Type *_data, const Basda::ImageHeader &_header)
 
 Image (const Type *_data, const Nice::Size &_size, const Nice::Point &_ref=Nice::Point(0, 0), int _bin=1)
 
 Image (const SeqType &_data, const Nice::Size &_size, const Nice::Point &_ref=Nice::Point(0, 0), int _bin=1)
 
void swap (Image< Type > &)
 
SeqType getAllPixels ()
 
 operator ImageBase ()
 
ImageBase toImageBase ()
 
int pix_size () const
 
bool load (const char *, const char *=0, int=-1)
 
void save (const char *, const char *)
 
bool loadFits (const std::string &_filename, size_t _index=0)
 
bool saveFits (const std::string &_filename)
 
bool saveFitsWithCards (const std::string &_filename, Basda::VinoFitsCardBox *fcards=0)
 
bool addFits (fitsfile *_fitshd)
 
const TypegetPix (size_t colIndx, size_t rowIndx) const
 
void setPix (size_t colIndx, size_t rowIndx, const Type &_pix)
 
Typedata ()
 
const Typedata () const
 
Typepix (size_t colIndx, size_t rowIndx)
 
const Typepix (size_t colIndx, size_t rowIndx) const
 
Imagecrop (const Image &_src, const Nice::Rect &_window, int _bin=1)
 
Imagefill (Type _val)
 
Imagenoise (double _dist)
 
Imagestar (const Nice::Point &_p, double _radius, double _scale)
 
Imagecircle (const Nice::Point &_p, double _radius, Type _val, bool _filled=false)
 
bool operator== (const Image &_image)
 
virtual ~Image ()
 
 Image ()
 
 Image (const ImageVar &_image)
 
 Image (const Basda::ImageHeader &_header)
 
 Image (const Nice::Size &_size)
 
 Image (const Nice::Size &_size, int _bin)
 
 Image (const Nice::Rect &_rect)
 
 Image (const Nice::Size &_size, const Nice::Point &_ref)
 
 Image (const Nice::Size &_size, const Nice::Point &_ref, int _bin)
 
 Image (const Type *_data, const Basda::ImageHeader &_header)
 
 Image (const Type *_data, const Nice::Size &_size, const Nice::Point &_ref=Nice::Point(0, 0), int _bin=1)
 
 Image (const SeqType &_data, const Nice::Size &_size, const Nice::Point &_ref=Nice::Point(0, 0), int _bin=1)
 
void swap (Image< Type > &)
 
SeqType getAllPixels ()
 
 operator ImageBase ()
 
ImageBase toImageBase ()
 
int pix_size () const
 
bool load (const char *, const char *=0, int=-1)
 
void save (const char *, const char *)
 
bool loadFits (const std::string &_filename, size_t _index=0)
 
bool saveFits (const std::string &_filename)
 
bool saveFitsWithCards (const std::string &_filename, Basda::VinoFitsCardBox *fcards=0)
 
bool addFits (fitsfile *_fitshd)
 
const TypegetPix (size_t colIndx, size_t rowIndx) const
 
void setPix (size_t colIndx, size_t rowIndx, const Type &_pix)
 
Typedata ()
 
const Typedata () const
 
Typepix (size_t colIndx, size_t rowIndx)
 
const Typepix (size_t colIndx, size_t rowIndx) const
 
Imagecrop (const Image &_src, const Nice::Rect &_window, int _bin=1)
 
Imagefill (Type _val)
 
Imagenoise (double _dist)
 
Imagestar (const Nice::Point &_p, double _radius, double _scale)
 
Imagecircle (const Nice::Point &_p, double _radius, Type _val, bool _filled=false)
 
bool operator== (const Image &_image)
 
template<>
Basda::ImageType type ()
 
template<>
int fitsType ()
 
template<>
int fitsDepth ()
 
template<>
Basda::ImageType type ()
 
template<>
int fitsType ()
 
template<>
int fitsDepth ()
 
template<>
Basda::ImageType type ()
 
template<>
int fitsType ()
 
template<>
int fitsDepth ()
 
template<>
Basda::ImageType type ()
 
template<>
int fitsType ()
 
template<>
int fitsDepth ()
 
template<>
Basda::ImageType type ()
 
template<>
int fitsType ()
 
template<>
int fitsDepth ()
 
template<>
Basda::ImageType type ()
 
template<>
int fitsType ()
 
template<>
int fitsDepth ()
 
template<>
Basda::ImageType type ()
 
template<>
int fitsType ()
 
template<>
int fitsDepth ()
 
template<>
Basda::ImageType type ()
 
template<>
int fitsType ()
 
template<>
int fitsDepth ()
 
template<>
bool saveFits (const std::string &filename)
 
template<>
bool saveFits (const std::string &)
 
template<>
Basda::ImageType type ()
 
template<>
int fitsType ()
 
template<>
int fitsDepth ()
 
template<>
Basda::ImageType type ()
 
template<>
int fitsType ()
 
template<>
int fitsDepth ()
 
template<>
Basda::ImageType type ()
 
template<>
int fitsType ()
 
template<>
int fitsDepth ()
 
template<>
Basda::ImageType type ()
 
template<>
int fitsType ()
 
template<>
int fitsDepth ()
 
template<>
Basda::ImageType type ()
 
template<>
int fitsType ()
 
template<>
int fitsDepth ()
 
template<>
Basda::ImageType type ()
 
template<>
int fitsType ()
 
template<>
int fitsDepth ()
 
template<>
Basda::ImageType type ()
 
template<>
int fitsType ()
 
template<>
int fitsDepth ()
 
template<>
Basda::ImageType type ()
 
template<>
int fitsType ()
 
template<>
int fitsDepth ()
 
template<>
Basda::ImageType type ()
 
template<>
int fitsType ()
 
template<>
int fitsDepth ()
 
template<>
Basda::ImageType type ()
 
template<>
int fitsType ()
 
template<>
int fitsDepth ()
 
template<>
Basda::ImageType type ()
 
template<>
int fitsType ()
 
template<>
int fitsDepth ()
 
template<>
Basda::ImageType type ()
 
template<>
int fitsType ()
 
template<>
int fitsDepth ()
 
template<>
Basda::ImageType type ()
 
template<>
int fitsType ()
 
template<>
int fitsDepth ()
 
template<>
Basda::ImageType type ()
 
template<>
int fitsType ()
 
template<>
int fitsDepth ()
 
template<>
Basda::ImageType type ()
 
template<>
int fitsType ()
 
template<>
int fitsDepth ()
 
template<>
Basda::ImageType type ()
 
template<>
int fitsType ()
 
template<>
int fitsDepth ()
 
template<>
bool saveFits (const std::string &filename)
 
template<>
bool saveFits (const std::string &)
 
template<>
Basda::ImageType type ()
 
template<>
int fitsType ()
 
template<>
int fitsDepth ()
 
template<>
Basda::ImageType type ()
 
template<>
int fitsType ()
 
template<>
int fitsDepth ()
 
template<>
Basda::ImageType type ()
 
template<>
int fitsType ()
 
template<>
int fitsDepth ()
 
template<>
Basda::ImageType type ()
 
template<>
int fitsType ()
 
template<>
int fitsDepth ()
 
template<>
Basda::ImageType type ()
 
template<>
int fitsType ()
 
template<>
int fitsDepth ()
 
template<>
Basda::ImageType type ()
 
template<>
int fitsType ()
 
template<>
int fitsDepth ()
 
template<>
Basda::ImageType type ()
 
template<>
int fitsType ()
 
template<>
int fitsDepth ()
 
template<>
Basda::ImageType type ()
 
template<>
int fitsType ()
 
template<>
int fitsDepth ()
 
template<>
Basda::ImageType type ()
 
template<>
int fitsType ()
 
template<>
int fitsDepth ()
 
template<>
Basda::ImageType type ()
 
template<>
int fitsType ()
 
template<>
int fitsDepth ()
 
template<>
Basda::ImageType type ()
 
template<>
int fitsType ()
 
template<>
int fitsDepth ()
 
template<>
Basda::ImageType type ()
 
template<>
int fitsType ()
 
template<>
int fitsDepth ()
 
template<>
Basda::ImageType type ()
 
template<>
int fitsType ()
 
template<>
int fitsDepth ()
 
template<>
Basda::ImageType type ()
 
template<>
int fitsType ()
 
template<>
int fitsDepth ()
 
template<>
Basda::ImageType type ()
 
template<>
int fitsType ()
 
template<>
int fitsDepth ()
 
template<>
Basda::ImageType type ()
 
template<>
int fitsType ()
 
template<>
int fitsDepth ()
 
template<>
bool saveFits (const std::string &filename)
 
- Public Member Functions inherited from Basda::ImageBase
 ImageBase ()
 
virtual ~ImageBase ()
 
std::string getRawImageAsString ()
 
size_t bytes () const
 
ImageType typeId () const
 
void setCameraId (int _id)
 
int cameraId () const
 
void setChanId (int _id)
 
int chanId () const
 
void setSeqNum (int _seq)
 
int seqNum () const
 
void setExpoDate (const Nice::Date &_date)
 
Nice::Date expoDate () const
 
void setExpoMode (Basda::ExpoModeType _mode)
 
Basda::ExpoModeType expoMode () const
 
void setProgram (Nice::Int _prg)
 
Nice::Int program () const
 
void setGain (Nice::Int _gain)
 
Nice::Int gain () const
 
void setExpoTime (Nice::Time _time)
 
Nice::Time expoTime () const
 
void setWCS (Nice::WMatrix _wcs)
 
Nice::WMatrix wcs () const
 
bool isValid () const
 
int width () const
 
int height () const
 
int bin () const
 
Nice::Size size () const
 
Nice::Point crpix () const
 
void setBounding (const Nice::Size &_b)
 
Nice::Size bounding () const
 
int pixels () const
 
const Basda::ImageHeaderheader () const
 
const Basda::ImageDatarawdata () const
 
 ImageBase ()
 
virtual ~ImageBase ()
 
std::string getRawImageAsString ()
 
size_t bytes () const
 
ImageType typeId () const
 
void setCameraId (int _id)
 
int cameraId () const
 
void setChanId (int _id)
 
int chanId () const
 
void setSeqNum (int _seq)
 
int seqNum () const
 
void setExpoDate (const Nice::Date &_date)
 
Nice::Date expoDate () const
 
void setExpoMode (Basda::ExpoModeType _mode)
 
Basda::ExpoModeType expoMode () const
 
void setProgram (Nice::Int _prg)
 
Nice::Int program () const
 
void setGain (Nice::Int _gain)
 
Nice::Int gain () const
 
void setExpoTime (Nice::Time _time)
 
Nice::Time expoTime () const
 
void setWCS (Nice::WMatrix _wcs)
 
Nice::WMatrix wcs () const
 
bool isValid () const
 
int width () const
 
int height () const
 
int bin () const
 
Nice::Size size () const
 
Nice::Point crpix () const
 
void setBounding (const Nice::Size &_b)
 
Nice::Size bounding () const
 
int pixels () const
 
const Basda::ImageHeaderheader () const
 
const Basda::ImageDatarawdata () const
 
 ImageBase ()
 
virtual ~ImageBase ()
 
std::string getRawImageAsString ()
 
size_t bytes () const
 
ImageType typeId () const
 
void setCameraId (int _id)
 
int cameraId () const
 
void setChanId (int _id)
 
int chanId () const
 
void setSeqNum (int _seq)
 
int seqNum () const
 
void setExpoDate (const Nice::Date &_date)
 
Nice::Date expoDate () const
 
void setExpoMode (Basda::ExpoModeType _mode)
 
Basda::ExpoModeType expoMode () const
 
void setProgram (Nice::Int _prg)
 
Nice::Int program () const
 
void setGain (Nice::Int _gain)
 
Nice::Int gain () const
 
void setExpoTime (Nice::Time _time)
 
Nice::Time expoTime () const
 
void setWCS (Nice::WMatrix _wcs)
 
Nice::WMatrix wcs () const
 
bool isValid () const
 
int width () const
 
int height () const
 
int bin () const
 
Nice::Size size () const
 
Nice::Point crpix () const
 
void setBounding (const Nice::Size &_b)
 
Nice::Size bounding () const
 
int pixels () const
 
const Basda::ImageHeaderheader () const
 
const Basda::ImageDatarawdata () const
 
- Public Member Functions inherited from Basda::ImageVar
bool operator== (const ImageVar &__rhs) const
 
bool operator< (const ImageVar &__rhs) const
 
bool operator!= (const ImageVar &__rhs) const
 
bool operator<= (const ImageVar &__rhs) const
 
bool operator> (const ImageVar &__rhs) const
 
bool operator>= (const ImageVar &__rhs) const
 
bool operator== (const ImageVar &__rhs) const
 
bool operator< (const ImageVar &__rhs) const
 
bool operator!= (const ImageVar &__rhs) const
 
bool operator<= (const ImageVar &__rhs) const
 
bool operator> (const ImageVar &__rhs) const
 
bool operator>= (const ImageVar &__rhs) const
 

Static Public Member Functions

static ImageType type ()
 
static int fitsType ()
 
static int fitsDepth ()
 
static int loadFitsVector (SeqImageType &, const std::string &_name)
 
static int saveFitsVector (const SeqImageType &, const std::string &_name)
 
static ImageType type ()
 
static int fitsType ()
 
static int fitsDepth ()
 
static int loadFitsVector (SeqImageType &, const std::string &_name)
 
static int saveFitsVector (const SeqImageType &, const std::string &_name)
 
static ImageType type ()
 
static int fitsType ()
 
static int fitsDepth ()
 
static int loadFitsVector (SeqImageType &, const std::string &_name)
 
static int saveFitsVector (const SeqImageType &, const std::string &_name)
 

Protected Member Functions

int loadFits (fitsfile *_fitsptr, size_t _index=0)
 Read the image data of a HDU. More...
 
Imagecopy (const Type *_data)
 overwrite the image data with new data. More...
 
Imagecopy (const ImageVar &_image)
 Replace/Overload the image data with other data. More...
 
template<typename SrcType >
Imagecopy (const ImageData &_src)
 
Imagecreate (const Nice::Size &_size, const Nice::Point &_ref=Nice::Point(0, 0), int _bin=1)
 Generate a new image (filled with random data). Old values stay as they are. More...
 
Imagecreate (const Basda::ImageHeader &_header)
 Create a new image with randomized data. Old values stay as they are. More...
 
int loadFits (fitsfile *_fitsptr, size_t _index=0)
 
Imagecopy (const Type *_data)
 
Imagecopy (const ImageVar &_image)
 
template<typename SrcType >
Imagecopy (const ImageData &_src)
 
Imagecreate (const Nice::Size &_size, const Nice::Point &_ref=Nice::Point(0, 0), int _bin=1)
 
Imagecreate (const Basda::ImageHeader &_header)
 
int loadFits (fitsfile *_fitsptr, size_t _index=0)
 
Imagecopy (const Type *_data)
 
Imagecopy (const ImageVar &_image)
 
template<typename SrcType >
Imagecopy (const ImageData &_src)
 
Imagecreate (const Nice::Size &_size, const Nice::Point &_ref=Nice::Point(0, 0), int _bin=1)
 
Imagecreate (const Basda::ImageHeader &_header)
 
template<>
bool loadFits (const std::string &filename, size_t index)
 
template<>
bool loadFits (const std::string &, size_t)
 
template<>
bool loadFits (const std::string &filename, size_t index)
 
template<>
bool loadFits (const std::string &, size_t)
 
template<>
bool loadFits (const std::string &filename, size_t index)
 

Static Protected Member Functions

static fitsfile * openFits (const std::string &_filename)
 
static fitsfile * openFits (const std::string &_filename, size_t &numImages)
 open a FITS file with cfitsio. More...
 
static int closeFits (fitsfile *_fitsfd)
 
static fitsfile * openFits (const std::string &_filename)
 
static fitsfile * openFits (const std::string &_filename, size_t &numImages)
 
static int closeFits (fitsfile *_fitsfd)
 
static fitsfile * openFits (const std::string &_filename)
 
static fitsfile * openFits (const std::string &_filename, size_t &numImages)
 
static int closeFits (fitsfile *_fitsfd)
 

Private Types

typedef IceUtil::Handle< ImageImageTypePtr
 
typedef std::vector< ImageSeqImageType
 
typedef IceUtil::Handle< SeqImageTypeSeqImageTypePtr
 
typedef std::vector< ImageTypePtrSeqImagePtrType
 
typedef IceUtil::Handle< SeqImagePtrTypeSeqImagePtrTypePtr
 
typedef std::vector< TypeSeqType
 
typedef IceUtil::Handle< ImageImageTypePtr
 
typedef std::vector< ImageSeqImageType
 
typedef IceUtil::Handle< SeqImageTypeSeqImageTypePtr
 
typedef std::vector< ImageTypePtrSeqImagePtrType
 
typedef IceUtil::Handle< SeqImagePtrTypeSeqImagePtrTypePtr
 
typedef std::vector< TypeSeqType
 
typedef IceUtil::Handle< ImageImageTypePtr
 
typedef std::vector< ImageSeqImageType
 
typedef IceUtil::Handle< SeqImageTypeSeqImageTypePtr
 
typedef std::vector< ImageTypePtrSeqImagePtrType
 
typedef IceUtil::Handle< SeqImagePtrTypeSeqImagePtrTypePtr
 
typedef std::vector< TypeSeqType
 

Static Private Member Functions

static void fitsPanic (int status)
 Throw an exception which contains the cfitsio error as a string. More...
 
static void fitsPanic (int status)
 
static void fitsPanic (int status)
 

Friends

template<typename >
class Image
 

Additional Inherited Members

- Public Attributes inherited from Basda::ImageVar
::Basda::ImageHeaderVar header
 
::Nice::SeqByte bytedata
 

Member Typedef Documentation

◆ ImageTypePtr [1/3]

template<typename Type = Nice::U16>
typedef IceUtil::Handle<Image> Basda::Image< Type >::ImageTypePtr
private

◆ ImageTypePtr [2/3]

template<typename Type = Nice::U16>
typedef IceUtil::Handle<Image> Basda::Image< Type >::ImageTypePtr
private

◆ ImageTypePtr [3/3]

template<typename Type = Nice::U16>
typedef IceUtil::Handle<Image> Basda::Image< Type >::ImageTypePtr
private

◆ SeqImagePtrType [1/3]

template<typename Type = Nice::U16>
typedef std::vector<ImageTypePtr> Basda::Image< Type >::SeqImagePtrType
private

◆ SeqImagePtrType [2/3]

template<typename Type = Nice::U16>
typedef std::vector<ImageTypePtr> Basda::Image< Type >::SeqImagePtrType
private

◆ SeqImagePtrType [3/3]

template<typename Type = Nice::U16>
typedef std::vector<ImageTypePtr> Basda::Image< Type >::SeqImagePtrType
private

◆ SeqImagePtrTypePtr [1/3]

template<typename Type = Nice::U16>
typedef IceUtil::Handle<SeqImagePtrType> Basda::Image< Type >::SeqImagePtrTypePtr
private

◆ SeqImagePtrTypePtr [2/3]

template<typename Type = Nice::U16>
typedef IceUtil::Handle<SeqImagePtrType> Basda::Image< Type >::SeqImagePtrTypePtr
private

◆ SeqImagePtrTypePtr [3/3]

template<typename Type = Nice::U16>
typedef IceUtil::Handle<SeqImagePtrType> Basda::Image< Type >::SeqImagePtrTypePtr
private

◆ SeqImageType [1/3]

template<typename Type = Nice::U16>
typedef std::vector<Image> Basda::Image< Type >::SeqImageType
private

◆ SeqImageType [2/3]

template<typename Type = Nice::U16>
typedef std::vector<Image> Basda::Image< Type >::SeqImageType
private

◆ SeqImageType [3/3]

template<typename Type = Nice::U16>
typedef std::vector<Image> Basda::Image< Type >::SeqImageType
private

◆ SeqImageTypePtr [1/3]

template<typename Type = Nice::U16>
typedef IceUtil::Handle<SeqImageType> Basda::Image< Type >::SeqImageTypePtr
private

◆ SeqImageTypePtr [2/3]

template<typename Type = Nice::U16>
typedef IceUtil::Handle<SeqImageType> Basda::Image< Type >::SeqImageTypePtr
private

◆ SeqImageTypePtr [3/3]

template<typename Type = Nice::U16>
typedef IceUtil::Handle<SeqImageType> Basda::Image< Type >::SeqImageTypePtr
private

◆ SeqType [1/3]

template<typename Type = Nice::U16>
typedef std::vector<Type> Basda::Image< Type >::SeqType
private

◆ SeqType [2/3]

template<typename Type = Nice::U16>
typedef std::vector<Type> Basda::Image< Type >::SeqType
private

◆ SeqType [3/3]

template<typename Type = Nice::U16>
typedef std::vector<Type> Basda::Image< Type >::SeqType
private

Constructor & Destructor Documentation

◆ ~Image() [1/3]

template<typename Type = Nice::U16>
virtual Basda::Image< Type >::~Image ( )
inlinevirtual

◆ Image() [1/33]

template<typename >
Image ( )
inline

◆ Image() [2/33]

template<typename Type = Nice::U16>
Basda::Image< Type >::Image ( const ImageVar _image)
inline

◆ Image() [3/33]

template<typename Type = Nice::U16>
Basda::Image< Type >::Image ( const Basda::ImageHeader _header)
inline

◆ Image() [4/33]

template<typename Type = Nice::U16>
Basda::Image< Type >::Image ( const Nice::Size _size)
inline

◆ Image() [5/33]

template<typename Type = Nice::U16>
Basda::Image< Type >::Image ( const Nice::Size _size,
int  _bin 
)
inline

◆ Image() [6/33]

template<typename Type = Nice::U16>
Basda::Image< Type >::Image ( const Nice::Rect _rect)
inline

◆ Image() [7/33]

template<typename Type = Nice::U16>
Basda::Image< Type >::Image ( const Nice::Size _size,
const Nice::Point _ref 
)
inline

◆ Image() [8/33]

template<typename Type = Nice::U16>
Basda::Image< Type >::Image ( const Nice::Size _size,
const Nice::Point _ref,
int  _bin 
)
inline

◆ Image() [9/33]

template<typename Type = Nice::U16>
Basda::Image< Type >::Image ( const Type _data,
const Basda::ImageHeader _header 
)
inline

◆ Image() [10/33]

template<typename Type = Nice::U16>
Basda::Image< Type >::Image ( const Type _data,
const Nice::Size _size,
const Nice::Point _ref = Nice::Point(0, 0),
int  _bin = 1 
)
inline

◆ Image() [11/33]

template<typename Type = Nice::U16>
Basda::Image< Type >::Image ( const SeqType _data,
const Nice::Size _size,
const Nice::Point _ref = Nice::Point(0, 0),
int  _bin = 1 
)
inline

◆ ~Image() [2/3]

template<typename Type = Nice::U16>
virtual Basda::Image< Type >::~Image ( )
inlinevirtual

◆ Image() [12/33]

template<typename Type = Nice::U16>
Basda::Image< Type >::Image ( )
inline

◆ Image() [13/33]

template<typename Type = Nice::U16>
Basda::Image< Type >::Image ( const ImageVar _image)
inline

◆ Image() [14/33]

template<typename Type = Nice::U16>
Basda::Image< Type >::Image ( const Basda::ImageHeader _header)
inline

◆ Image() [15/33]

template<typename Type = Nice::U16>
Basda::Image< Type >::Image ( const Nice::Size _size)
inline

◆ Image() [16/33]

template<typename Type = Nice::U16>
Basda::Image< Type >::Image ( const Nice::Size _size,
int  _bin 
)
inline

◆ Image() [17/33]

template<typename Type = Nice::U16>
Basda::Image< Type >::Image ( const Nice::Rect _rect)
inline

◆ Image() [18/33]

template<typename Type = Nice::U16>
Basda::Image< Type >::Image ( const Nice::Size _size,
const Nice::Point _ref 
)
inline

◆ Image() [19/33]

template<typename Type = Nice::U16>
Basda::Image< Type >::Image ( const Nice::Size _size,
const Nice::Point _ref,
int  _bin 
)
inline

◆ Image() [20/33]

template<typename Type = Nice::U16>
Basda::Image< Type >::Image ( const Type _data,
const Basda::ImageHeader _header 
)
inline

◆ Image() [21/33]

template<typename Type = Nice::U16>
Basda::Image< Type >::Image ( const Type _data,
const Nice::Size _size,
const Nice::Point _ref = Nice::Point(0, 0),
int  _bin = 1 
)
inline

◆ Image() [22/33]

template<typename Type = Nice::U16>
Basda::Image< Type >::Image ( const SeqType _data,
const Nice::Size _size,
const Nice::Point _ref = Nice::Point(0, 0),
int  _bin = 1 
)
inline

◆ ~Image() [3/3]

template<typename Type = Nice::U16>
virtual Basda::Image< Type >::~Image ( )
inlinevirtual

◆ Image() [23/33]

template<typename Type = Nice::U16>
Basda::Image< Type >::Image ( )
inline

◆ Image() [24/33]

template<typename Type = Nice::U16>
Basda::Image< Type >::Image ( const ImageVar _image)
inline

◆ Image() [25/33]

template<typename Type = Nice::U16>
Basda::Image< Type >::Image ( const Basda::ImageHeader _header)
inline

◆ Image() [26/33]

template<typename Type = Nice::U16>
Basda::Image< Type >::Image ( const Nice::Size _size)
inline

◆ Image() [27/33]

template<typename Type = Nice::U16>
Basda::Image< Type >::Image ( const Nice::Size _size,
int  _bin 
)
inline

◆ Image() [28/33]

template<typename Type = Nice::U16>
Basda::Image< Type >::Image ( const Nice::Rect _rect)
inline

◆ Image() [29/33]

template<typename Type = Nice::U16>
Basda::Image< Type >::Image ( const Nice::Size _size,
const Nice::Point _ref 
)
inline

◆ Image() [30/33]

template<typename Type = Nice::U16>
Basda::Image< Type >::Image ( const Nice::Size _size,
const Nice::Point _ref,
int  _bin 
)
inline

◆ Image() [31/33]

template<typename Type = Nice::U16>
Basda::Image< Type >::Image ( const Type _data,
const Basda::ImageHeader _header 
)
inline

◆ Image() [32/33]

template<typename Type = Nice::U16>
Basda::Image< Type >::Image ( const Type _data,
const Nice::Size _size,
const Nice::Point _ref = Nice::Point(0, 0),
int  _bin = 1 
)
inline

◆ Image() [33/33]

template<typename Type = Nice::U16>
Basda::Image< Type >::Image ( const SeqType _data,
const Nice::Size _size,
const Nice::Point _ref = Nice::Point(0, 0),
int  _bin = 1 
)
inline

Member Function Documentation

◆ addFits() [1/3]

template<typename Type >
bool Basda::Image< Type >::addFits ( fitsfile *  _fitshd)

Parameters
fitsfile
Returns
Always false
Todo:
not implemented

Parameters
fitsfile
Returns
Always false
Todo:
not implemented

◆ addFits() [2/3]

template<typename Type = Nice::U16>
bool Basda::Image< Type >::addFits ( fitsfile *  _fitshd)

◆ addFits() [3/3]

template<typename Type = Nice::U16>
bool Basda::Image< Type >::addFits ( fitsfile *  _fitshd)

◆ circle() [1/3]

template<typename Type>
Basda::Image< Type > & Basda::Image< Type >::circle ( const Nice::Point _p,
double  _radius,
Type  _val,
bool  _filled = false 
)

Parameters
_p
_radius
_val
_filled
Returns
A pointer to this object

◆ circle() [2/3]

template<typename Type = Nice::U16>
Image& Basda::Image< Type >::circle ( const Nice::Point _p,
double  _radius,
Type  _val,
bool  _filled = false 
)

◆ circle() [3/3]

template<typename Type = Nice::U16>
Image& Basda::Image< Type >::circle ( const Nice::Point _p,
double  _radius,
Type  _val,
bool  _filled = false 
)

◆ closeFits() [1/3]

template<typename Type = Nice::U16>
static int Basda::Image< Type >::closeFits ( fitsfile *  _fitsfd)
staticprotected

◆ closeFits() [2/3]

template<typename Type = Nice::U16>
static int Basda::Image< Type >::closeFits ( fitsfile *  _fitsfd)
staticprotected

◆ closeFits() [3/3]

template<typename Type >
int Basda::Image< Type >::closeFits ( fitsfile *  _fitsptr)
staticprotected

Parameters
_fitsptrThe cfitsio pointer to the data.
Returns
The status of cfitsio. 0 on success.

◆ copy() [1/9]

template<typename Type>
Basda::Image< Type > & Basda::Image< Type >::copy ( const Type _data)
protected

overwrite the image data with new data.


Parameters
[in]_dataThe new data. These will only be copied to the maximum extension of the existing data. Which means: if they are more than the existing data, they will be clipped to fit into the space of the existing data.
Returns
This image itself.

◆ copy() [2/9]

template<typename Type = Nice::U16>
Image& Basda::Image< Type >::copy ( const Type _data)
protected

◆ copy() [3/9]

template<typename Type = Nice::U16>
Image& Basda::Image< Type >::copy ( const Type _data)
protected

◆ copy() [4/9]

template<typename Type = Nice::U16>
Image& Basda::Image< Type >::copy ( const ImageVar _image)
protected

◆ copy() [5/9]

template<typename Type>
Basda::Image< Type > & Basda::Image< Type >::copy ( const ImageVar _image)
protected

Replace/Overload the image data with other data.


Parameters
_imageThe new data to be copied.
Returns
This object (changed).

*this = Basda::ImageU16();

◆ copy() [6/9]

template<typename Type = Nice::U16>
Image& Basda::Image< Type >::copy ( const ImageVar _image)
protected

◆ copy() [7/9]

template<typename Type = Nice::U16>
template<typename SrcType >
Image& Basda::Image< Type >::copy ( const ImageData _src)
inlineprotected

◆ copy() [8/9]

template<typename Type = Nice::U16>
template<typename SrcType >
Image& Basda::Image< Type >::copy ( const ImageData _src)
inlineprotected

◆ copy() [9/9]

template<typename Type = Nice::U16>
template<typename SrcType >
Image& Basda::Image< Type >::copy ( const ImageData _src)
inlineprotected

◆ create() [1/6]

template<typename Type = Nice::U16>
Image& Basda::Image< Type >::create ( const Nice::Size _size,
const Nice::Point _ref = Nice::Point(0, 0),
int  _bin = 1 
)
protected

◆ create() [2/6]

template<typename Type = Nice::U16>
Image& Basda::Image< Type >::create ( const Nice::Size _size,
const Nice::Point _ref = Nice::Point(0, 0),
int  _bin = 1 
)
protected

◆ create() [3/6]

template<typename Type >
Basda::Image< Type > & Basda::Image< Type >::create ( const Nice::Size _size,
const Nice::Point _ref = Nice::Point(0, 0),
int  _bin = 1 
)
protected

Generate a new image (filled with random data). Old values stay as they are.


Parameters
_sizeDimension of the new image. Width and height.
_refLocation of the reference pixel in the data.
_binBinnign factor associated with the data.
Returns
This image expanded to the requested width and height.

◆ create() [4/6]

template<typename Type = Nice::U16>
Image& Basda::Image< Type >::create ( const Basda::ImageHeader _header)
protected

◆ create() [5/6]

template<typename Type = Nice::U16>
Image& Basda::Image< Type >::create ( const Basda::ImageHeader _header)
protected

◆ create() [6/6]

template<typename Type >
Basda::Image< Type > & Basda::Image< Type >::create ( const Basda::ImageHeader _header)
protected

Create a new image with randomized data. Old values stay as they are.


Parameters
[in]_headerThe information on the extension (width, height) of the reformatted data.
Returns
This image itself.

◆ crop() [1/3]

template<typename Type = Nice::U16>
Image& Basda::Image< Type >::crop ( const Image< Type > &  _src,
const Nice::Rect _window,
int  _bin = 1 
)

◆ crop() [2/3]

template<typename Type >
Basda::Image< Type > & Basda::Image< Type >::crop ( const Image< Type > &  _src,
const Nice::Rect _window,
int  _bin = 1 
)

Generate a new image by cropping this existing one. If the window parameter has the same size and origin as this image, the function effectively just re-bins the existing rectangle by co-adding values of the existing pixels.


Parameters
_srcThe data of the full image.
_windowThe rectangular window into the existing data. This is generally smaller than the existing data.
_binThe binning factor in the cropped image.
Returns
A pointer to the cropped image that has been created.

◆ crop() [3/3]

template<typename Type = Nice::U16>
Image& Basda::Image< Type >::crop ( const Image< Type > &  _src,
const Nice::Rect _window,
int  _bin = 1 
)

◆ data() [1/6]

template<typename Type = Nice::U16>
Type* Basda::Image< Type >::data ( )
inline

◆ data() [2/6]

template<typename Type = Nice::U16>
Type* Basda::Image< Type >::data ( )
inline

◆ data() [3/6]

template<typename Type = Nice::U16>
Type* Basda::Image< Type >::data ( )
inline

◆ data() [4/6]

template<typename Type = Nice::U16>
const Type* Basda::Image< Type >::data ( ) const
inline

◆ data() [5/6]

template<typename Type = Nice::U16>
const Type* Basda::Image< Type >::data ( ) const
inline

◆ data() [6/6]

template<typename Type = Nice::U16>
const Type* Basda::Image< Type >::data ( ) const
inline

◆ fill() [1/3]

template<typename Type>
Basda::Image< Type > & Basda::Image< Type >::fill ( Type  _val)

Fill all pixels with a constant value.


Parameters
[in]_valThe constant value that overwrites the existing data.
Returns
A pointer to this object

◆ fill() [2/3]

template<typename Type = Nice::U16>
Image& Basda::Image< Type >::fill ( Type  _val)

◆ fill() [3/3]

template<typename Type = Nice::U16>
Image& Basda::Image< Type >::fill ( Type  _val)

◆ fitsDepth() [1/43]

template<typename Type = Nice::U16>
static int Basda::Image< Type >::fitsDepth ( )
static

◆ fitsDepth() [2/43]

template<typename Type = Nice::U16>
static int Basda::Image< Type >::fitsDepth ( )
static

◆ fitsDepth() [3/43]

template<typename Type = Nice::U16>
static int Basda::Image< Type >::fitsDepth ( )
static

◆ fitsDepth() [4/43]

template<>
int Basda::Image< Nice::U8 >::fitsDepth ( )

◆ fitsDepth() [5/43]

template<>
int Basda::Image< Nice::U8 >::fitsDepth ( )

◆ fitsDepth() [6/43]

template<>
int Basda::Image< Nice::U8 >::fitsDepth ( )

◆ fitsDepth() [7/43]

template<>
int Basda::Image< Nice::U16 >::fitsDepth ( )

◆ fitsDepth() [8/43]

template<>
int Basda::Image< Nice::U16 >::fitsDepth ( )

◆ fitsDepth() [9/43]

template<>
int Basda::Image< Nice::U16 >::fitsDepth ( )

◆ fitsDepth() [10/43]

template<>
int Basda::Image< Nice::U32 >::fitsDepth ( )

◆ fitsDepth() [11/43]

template<>
int Basda::Image< Nice::U32 >::fitsDepth ( )

◆ fitsDepth() [12/43]

template<>
int Basda::Image< Nice::U32 >::fitsDepth ( )

◆ fitsDepth() [13/43]

template<>
int Basda::Image< Nice::I32 >::fitsDepth ( )

◆ fitsDepth() [14/43]

template<>
int Basda::Image< Nice::I32 >::fitsDepth ( )

◆ fitsDepth() [15/43]

template<>
int Basda::Image< Nice::I32 >::fitsDepth ( )

◆ fitsDepth() [16/43]

template<>
int Basda::Image< Nice::I64 >::fitsDepth ( )

◆ fitsDepth() [17/43]

template<>
int Basda::Image< Nice::I64 >::fitsDepth ( )

◆ fitsDepth() [18/43]

template<>
int Basda::Image< Nice::I64 >::fitsDepth ( )

◆ fitsDepth() [19/43]

template<>
int Basda::Image< float >::fitsDepth ( )

◆ fitsDepth() [20/43]

template<>
int Basda::Image< float >::fitsDepth ( )

◆ fitsDepth() [21/43]

template<>
int Basda::Image< float >::fitsDepth ( )

◆ fitsDepth() [22/43]

template<>
int Basda::Image< double >::fitsDepth ( )

◆ fitsDepth() [23/43]

template<>
int Basda::Image< double >::fitsDepth ( )

◆ fitsDepth() [24/43]

template<>
int Basda::Image< double >::fitsDepth ( )

◆ fitsDepth() [25/43]

template<>
int Basda::Image< Basda::RgbPixel >::fitsDepth ( )

◆ fitsDepth() [26/43]

template<>
int Basda::Image< Basda::RgbPixel >::fitsDepth ( )

◆ fitsDepth() [27/43]

template<>
int Basda::Image< Basda::RgbPixel >::fitsDepth ( )

◆ fitsDepth() [28/43]

template<>
int Basda::Image< Nice::U8 >::fitsDepth ( )

Returns

◆ fitsDepth() [29/43]

template<>
int Basda::Image< Nice::U8 >::fitsDepth ( )

Returns

◆ fitsDepth() [30/43]

template<>
int Basda::Image< Nice::U16 >::fitsDepth ( )

Returns

◆ fitsDepth() [31/43]

template<>
int Basda::Image< Nice::U16 >::fitsDepth ( )

Returns

◆ fitsDepth() [32/43]

template<>
int Basda::Image< Nice::U32 >::fitsDepth ( )

Returns

◆ fitsDepth() [33/43]

template<>
int Basda::Image< Nice::U32 >::fitsDepth ( )

Returns

◆ fitsDepth() [34/43]

template<>
int Basda::Image< Nice::I32 >::fitsDepth ( )

Returns

◆ fitsDepth() [35/43]

template<>
int Basda::Image< Nice::I32 >::fitsDepth ( )

Returns

◆ fitsDepth() [36/43]

template<>
int Basda::Image< Nice::I64 >::fitsDepth ( )

Returns

◆ fitsDepth() [37/43]

template<>
int Basda::Image< Nice::I64 >::fitsDepth ( )

Returns

◆ fitsDepth() [38/43]

template<>
int Basda::Image< float >::fitsDepth ( )

Returns

◆ fitsDepth() [39/43]

template<>
int Basda::Image< float >::fitsDepth ( )

Returns

◆ fitsDepth() [40/43]

template<>
int Basda::Image< double >::fitsDepth ( )

Returns

◆ fitsDepth() [41/43]

template<>
int Basda::Image< double >::fitsDepth ( )

Returns

◆ fitsDepth() [42/43]

template<>
int Basda::Image< Basda::RgbPixel >::fitsDepth ( )

Returns

◆ fitsDepth() [43/43]

template<>
int Basda::Image< Basda::RgbPixel >::fitsDepth ( )

Returns

◆ fitsPanic() [1/3]

template<typename Type >
void Basda::Image< Type >::fitsPanic ( int  status)
staticprivate

Throw an exception which contains the cfitsio error as a string.


Parameters
statusThe cfitsio error index.

◆ fitsPanic() [2/3]

template<typename Type = Nice::U16>
static void Basda::Image< Type >::fitsPanic ( int  status)
staticprivate

◆ fitsPanic() [3/3]

template<typename Type = Nice::U16>
static void Basda::Image< Type >::fitsPanic ( int  status)
staticprivate

◆ fitsType() [1/43]

template<typename Type = Nice::U16>
static int Basda::Image< Type >::fitsType ( )
static

◆ fitsType() [2/43]

template<typename Type = Nice::U16>
static int Basda::Image< Type >::fitsType ( )
static

◆ fitsType() [3/43]

template<typename Type = Nice::U16>
static int Basda::Image< Type >::fitsType ( )
static

◆ fitsType() [4/43]

template<>
int Basda::Image< Nice::U8 >::fitsType ( )

◆ fitsType() [5/43]

template<>
int Basda::Image< Nice::U8 >::fitsType ( )

◆ fitsType() [6/43]

template<>
int Basda::Image< Nice::U8 >::fitsType ( )

◆ fitsType() [7/43]

template<>
int Basda::Image< Nice::U16 >::fitsType ( )

◆ fitsType() [8/43]

template<>
int Basda::Image< Nice::U16 >::fitsType ( )

◆ fitsType() [9/43]

template<>
int Basda::Image< Nice::U16 >::fitsType ( )

◆ fitsType() [10/43]

template<>
int Basda::Image< Nice::U32 >::fitsType ( )

◆ fitsType() [11/43]

template<>
int Basda::Image< Nice::U32 >::fitsType ( )

◆ fitsType() [12/43]

template<>
int Basda::Image< Nice::U32 >::fitsType ( )

◆ fitsType() [13/43]

template<>
int Basda::Image< Nice::I32 >::fitsType ( )

◆ fitsType() [14/43]

template<>
int Basda::Image< Nice::I32 >::fitsType ( )

◆ fitsType() [15/43]

template<>
int Basda::Image< Nice::I32 >::fitsType ( )

◆ fitsType() [16/43]

template<>
int Basda::Image< Nice::I64 >::fitsType ( )

◆ fitsType() [17/43]

template<>
int Basda::Image< Nice::I64 >::fitsType ( )

◆ fitsType() [18/43]

template<>
int Basda::Image< Nice::I64 >::fitsType ( )

◆ fitsType() [19/43]

template<>
int Basda::Image< float >::fitsType ( )

◆ fitsType() [20/43]

template<>
int Basda::Image< float >::fitsType ( )

◆ fitsType() [21/43]

template<>
int Basda::Image< float >::fitsType ( )

◆ fitsType() [22/43]

template<>
int Basda::Image< double >::fitsType ( )

◆ fitsType() [23/43]

template<>
int Basda::Image< double >::fitsType ( )

◆ fitsType() [24/43]

template<>
int Basda::Image< double >::fitsType ( )

◆ fitsType() [25/43]

template<>
int Basda::Image< Basda::RgbPixel >::fitsType ( )

◆ fitsType() [26/43]

template<>
int Basda::Image< Basda::RgbPixel >::fitsType ( )

◆ fitsType() [27/43]

template<>
int Basda::Image< Basda::RgbPixel >::fitsType ( )

◆ fitsType() [28/43]

template<>
int Basda::Image< Nice::U8 >::fitsType ( )

Returns

◆ fitsType() [29/43]

template<>
int Basda::Image< Nice::U8 >::fitsType ( )

Returns

◆ fitsType() [30/43]

template<>
int Basda::Image< Nice::U16 >::fitsType ( )

Returns

◆ fitsType() [31/43]

template<>
int Basda::Image< Nice::U16 >::fitsType ( )

Returns

◆ fitsType() [32/43]

template<>
int Basda::Image< Nice::U32 >::fitsType ( )

Returns

◆ fitsType() [33/43]

template<>
int Basda::Image< Nice::U32 >::fitsType ( )

Returns

◆ fitsType() [34/43]

template<>
int Basda::Image< Nice::I32 >::fitsType ( )

Returns

◆ fitsType() [35/43]

template<>
int Basda::Image< Nice::I32 >::fitsType ( )

Returns

◆ fitsType() [36/43]

template<>
int Basda::Image< Nice::I64 >::fitsType ( )

Returns

◆ fitsType() [37/43]

template<>
int Basda::Image< Nice::I64 >::fitsType ( )

Returns

◆ fitsType() [38/43]

template<>
int Basda::Image< float >::fitsType ( )

Returns

◆ fitsType() [39/43]

template<>
int Basda::Image< float >::fitsType ( )

Returns

◆ fitsType() [40/43]

template<>
int Basda::Image< double >::fitsType ( )

Returns

◆ fitsType() [41/43]

template<>
int Basda::Image< double >::fitsType ( )

Returns

◆ fitsType() [42/43]

template<>
int Basda::Image< Basda::RgbPixel >::fitsType ( )

Returns

◆ fitsType() [43/43]

template<>
int Basda::Image< Basda::RgbPixel >::fitsType ( )

Returns

◆ getAllPixels() [1/3]

template<typename Type = Nice::U16>
SeqType Basda::Image< Type >::getAllPixels ( )
inline

◆ getAllPixels() [2/3]

template<typename Type = Nice::U16>
SeqType Basda::Image< Type >::getAllPixels ( )
inline

◆ getAllPixels() [3/3]

template<typename Type = Nice::U16>
SeqType Basda::Image< Type >::getAllPixels ( )
inline

◆ getPix() [1/3]

template<typename Type = Nice::U16>
const Type& Basda::Image< Type >::getPix ( size_t  colIndx,
size_t  rowIndx 
) const
inline

◆ getPix() [2/3]

template<typename Type = Nice::U16>
const Type& Basda::Image< Type >::getPix ( size_t  colIndx,
size_t  rowIndx 
) const
inline

◆ getPix() [3/3]

template<typename Type = Nice::U16>
const Type& Basda::Image< Type >::getPix ( size_t  colIndx,
size_t  rowIndx 
) const
inline

◆ load() [1/3]

template<typename Type = Nice::U16>
bool Basda::Image< Type >::load ( const char *  ,
const char *  = 0,
int  = -1 
)
inline

◆ load() [2/3]

template<typename Type = Nice::U16>
bool Basda::Image< Type >::load ( const char *  ,
const char *  = 0,
int  = -1 
)
inline

◆ load() [3/3]

template<typename Type = Nice::U16>
bool Basda::Image< Type >::load ( const char *  ,
const char *  = 0,
int  = -1 
)
inline

◆ loadFits() [1/11]

template<typename Type = Nice::U16>
int Basda::Image< Type >::loadFits ( fitsfile *  _fitsptr,
size_t  _index = 0 
)
protected

◆ loadFits() [2/11]

template<typename Type = Nice::U16>
int Basda::Image< Type >::loadFits ( fitsfile *  _fitsptr,
size_t  _index = 0 
)
protected

◆ loadFits() [3/11]

template<typename Type >
int Basda::Image< Type >::loadFits ( fitsfile *  _fitsptr,
size_t  _index = 0 
)
protected

Read the image data of a HDU.


Parameters
_fitsptrThe cfitsio pointer to the FITS data.
_index0-based image index. If the FITS file has a FITS cube, this is the index into the slice of the cube. If the FITS file has multiple image extensions, this is the index into the image extension.
Returns
The status of cfitsio. true on success, false on error

◆ loadFits() [4/11]

template<>
bool Basda::Image< Basda::RgbPixel >::loadFits ( const std::string &  ,
size_t   
)
protected

Parameters

◆ loadFits() [5/11]

template<>
bool Basda::Image< Basda::RgbPixel >::loadFits ( const std::string &  ,
size_t   
)
protected

Parameters

◆ loadFits() [6/11]

template<typename Type = Nice::U16>
bool Basda::Image< Type >::loadFits ( const std::string &  _filename,
size_t  _index = 0 
)

◆ loadFits() [7/11]

template<typename Type >
bool Basda::Image< Type >::loadFits ( const std::string &  _filename,
size_t  _index = 0 
)

Parameters
_filename
_index
Returns
The status of cfitsio. true on success, false on error

◆ loadFits() [8/11]

template<typename Type = Nice::U16>
bool Basda::Image< Type >::loadFits ( const std::string &  _filename,
size_t  _index = 0 
)

◆ loadFits() [9/11]

template<>
bool Basda::Image< Basda::RgbPixel >::loadFits ( const std::string &  filename,
size_t  index 
)
protected

◆ loadFits() [10/11]

template<>
bool Basda::Image< Basda::RgbPixel >::loadFits ( const std::string &  filename,
size_t  index 
)
protected

◆ loadFits() [11/11]

template<>
bool Basda::Image< Basda::RgbPixel >::loadFits ( const std::string &  filename,
size_t  index 
)
protected

◆ loadFitsVector() [1/3]

template<typename Type = Nice::U16>
static int Basda::Image< Type >::loadFitsVector ( SeqImageType ,
const std::string &  _name 
)
static

◆ loadFitsVector() [2/3]

template<typename Type = Nice::U16>
static int Basda::Image< Type >::loadFitsVector ( SeqImageType ,
const std::string &  _name 
)
static

◆ loadFitsVector() [3/3]

template<typename Type = Nice::U16>
static int Basda::Image< Type >::loadFitsVector ( SeqImageType ,
const std::string &  _name 
)
static

◆ noise() [1/3]

template<typename Type >
Basda::Image< Type > & Basda::Image< Type >::noise ( double  _dist)

Parameters
_dist
Returns
A pointer to this object

◆ noise() [2/3]

template<typename Type = Nice::U16>
Image& Basda::Image< Type >::noise ( double  _dist)

◆ noise() [3/3]

template<typename Type = Nice::U16>
Image& Basda::Image< Type >::noise ( double  _dist)

◆ openFits() [1/6]

template<typename Type >
fitsfile * Basda::Image< Type >::openFits ( const std::string &  _filename)
staticprotected

Parameters
_filenameThe FITS file to be opened.
Returns
The pointer to the cfitsio handler of the file.

◆ openFits() [2/6]

template<typename Type = Nice::U16>
static fitsfile* Basda::Image< Type >::openFits ( const std::string &  _filename)
staticprotected

◆ openFits() [3/6]

template<typename Type = Nice::U16>
static fitsfile* Basda::Image< Type >::openFits ( const std::string &  _filename)
staticprotected

◆ openFits() [4/6]

template<typename Type >
fitsfile * Basda::Image< Type >::openFits ( const std::string &  _filename,
size_t &  numImages 
)
staticprotected

open a FITS file with cfitsio.


Parameters
[in]_filenameName of the file in the current file system.
[out]numImagesNumber of images in the file. This has two differente meanings: if the primary HDU contains a FITS cube, this is the number of slices (images) in the cube. If the primary HDU does not contain a FITS cube (but only a FITS image or a FITS table...), this is the number of header data units.
Returns
The cfitsio pointer to the data.

◆ openFits() [5/6]

template<typename Type = Nice::U16>
static fitsfile* Basda::Image< Type >::openFits ( const std::string &  _filename,
size_t &  numImages 
)
staticprotected

◆ openFits() [6/6]

template<typename Type = Nice::U16>
static fitsfile* Basda::Image< Type >::openFits ( const std::string &  _filename,
size_t &  numImages 
)
staticprotected

◆ operator ImageBase() [1/3]

template<typename Type = Nice::U16>
Basda::Image< Type >::operator ImageBase ( )
inline

◆ operator ImageBase() [2/3]

template<typename Type = Nice::U16>
Basda::Image< Type >::operator ImageBase ( )
inline

◆ operator ImageBase() [3/3]

template<typename Type = Nice::U16>
Basda::Image< Type >::operator ImageBase ( )
inline

◆ operator==() [1/3]

template<typename Type = Nice::U16>
bool Basda::Image< Type >::operator== ( const Image< Type > &  _image)
inline

◆ operator==() [2/3]

template<typename Type = Nice::U16>
bool Basda::Image< Type >::operator== ( const Image< Type > &  _image)
inline

◆ operator==() [3/3]

template<typename Type = Nice::U16>
bool Basda::Image< Type >::operator== ( const Image< Type > &  _image)
inline

◆ pix() [1/6]

template<typename Type = Nice::U16>
Type& Basda::Image< Type >::pix ( size_t  colIndx,
size_t  rowIndx 
)
inline

◆ pix() [2/6]

template<typename Type = Nice::U16>
Type& Basda::Image< Type >::pix ( size_t  colIndx,
size_t  rowIndx 
)
inline

◆ pix() [3/6]

template<typename Type = Nice::U16>
Type& Basda::Image< Type >::pix ( size_t  colIndx,
size_t  rowIndx 
)
inline

◆ pix() [4/6]

template<typename Type = Nice::U16>
const Type& Basda::Image< Type >::pix ( size_t  colIndx,
size_t  rowIndx 
) const
inline

◆ pix() [5/6]

template<typename Type = Nice::U16>
const Type& Basda::Image< Type >::pix ( size_t  colIndx,
size_t  rowIndx 
) const
inline

◆ pix() [6/6]

template<typename Type = Nice::U16>
const Type& Basda::Image< Type >::pix ( size_t  colIndx,
size_t  rowIndx 
) const
inline

◆ pix_size() [1/3]

template<typename Type = Nice::U16>
int Basda::Image< Type >::pix_size ( ) const
inline

◆ pix_size() [2/3]

template<typename Type = Nice::U16>
int Basda::Image< Type >::pix_size ( ) const
inline

◆ pix_size() [3/3]

template<typename Type = Nice::U16>
int Basda::Image< Type >::pix_size ( ) const
inline

◆ save() [1/3]

template<typename Type = Nice::U16>
void Basda::Image< Type >::save ( const char *  ,
const char *   
)
inline

◆ save() [2/3]

template<typename Type = Nice::U16>
void Basda::Image< Type >::save ( const char *  ,
const char *   
)
inline

◆ save() [3/3]

template<typename Type = Nice::U16>
void Basda::Image< Type >::save ( const char *  ,
const char *   
)
inline

◆ saveFits() [1/8]

template<typename Type >
bool Basda::Image< Type >::saveFits ( const std::string &  filename)

Write the data as an image into the primary HDU of a FITS file.


Parameters
filenameThe name of the FITS file to be created.
Returns
Always true

◆ saveFits() [2/8]

template<typename Type = Nice::U16>
bool Basda::Image< Type >::saveFits ( const std::string &  _filename)

◆ saveFits() [3/8]

template<typename Type = Nice::U16>
bool Basda::Image< Type >::saveFits ( const std::string &  _filename)

◆ saveFits() [4/8]

template<>
bool Basda::Image< Basda::RgbPixel >::saveFits ( const std::string &  )

Parameters

◆ saveFits() [5/8]

template<>
bool Basda::Image< Basda::RgbPixel >::saveFits ( const std::string &  )

Parameters

◆ saveFits() [6/8]

template<>
bool Basda::Image< Basda::RgbPixel >::saveFits ( const std::string &  filename)

◆ saveFits() [7/8]

template<>
bool Basda::Image< Basda::RgbPixel >::saveFits ( const std::string &  filename)

◆ saveFits() [8/8]

template<>
bool Basda::Image< Basda::RgbPixel >::saveFits ( const std::string &  filename)

◆ saveFitsVector() [1/3]

template<typename Type = Nice::U16>
static int Basda::Image< Type >::saveFitsVector ( const SeqImageType ,
const std::string &  _name 
)
static

◆ saveFitsVector() [2/3]

template<typename Type = Nice::U16>
static int Basda::Image< Type >::saveFitsVector ( const SeqImageType ,
const std::string &  _name 
)
static

◆ saveFitsVector() [3/3]

template<typename Type = Nice::U16>
static int Basda::Image< Type >::saveFitsVector ( const SeqImageType ,
const std::string &  _name 
)
static

◆ saveFitsWithCards() [1/3]

template<typename Type >
bool Basda::Image< Type >::saveFitsWithCards ( const std::string &  filename,
Basda::VinoFitsCardBox fcards = 0 
)

Write the data as an image into the primary HDU of a FITS file.


Parameters
filenameThe name of the FITS file to be created.
fcardsAdditional FITS header keywords. May be zero to indicate that no such keywords are present.
Returns
Always true

◆ saveFitsWithCards() [2/3]

template<typename Type = Nice::U16>
bool Basda::Image< Type >::saveFitsWithCards ( const std::string &  _filename,
Basda::VinoFitsCardBox fcards = 0 
)

◆ saveFitsWithCards() [3/3]

template<typename Type = Nice::U16>
bool Basda::Image< Type >::saveFitsWithCards ( const std::string &  _filename,
Basda::VinoFitsCardBox fcards = 0 
)

◆ setPix() [1/3]

template<typename Type = Nice::U16>
void Basda::Image< Type >::setPix ( size_t  colIndx,
size_t  rowIndx,
const Type _pix 
)
inline

◆ setPix() [2/3]

template<typename Type = Nice::U16>
void Basda::Image< Type >::setPix ( size_t  colIndx,
size_t  rowIndx,
const Type _pix 
)
inline

◆ setPix() [3/3]

template<typename Type = Nice::U16>
void Basda::Image< Type >::setPix ( size_t  colIndx,
size_t  rowIndx,
const Type _pix 
)
inline

◆ star() [1/3]

template<typename Type >
Basda::Image< Type > & Basda::Image< Type >::star ( const Nice::Point _p,
double  _radius,
double  _scale 
)

Parameters
_p
_radius
_scale
Returns
A pointer to this object

◆ star() [2/3]

template<typename Type = Nice::U16>
Image& Basda::Image< Type >::star ( const Nice::Point _p,
double  _radius,
double  _scale 
)

◆ star() [3/3]

template<typename Type = Nice::U16>
Image& Basda::Image< Type >::star ( const Nice::Point _p,
double  _radius,
double  _scale 
)

◆ swap() [1/3]

template<typename Type>
void Basda::Image< Type >::swap ( Basda::Image< Type > &  _img)

◆ swap() [2/3]

template<typename Type = Nice::U16>
void Basda::Image< Type >::swap ( Image< Type > &  )

◆ swap() [3/3]

template<typename Type = Nice::U16>
void Basda::Image< Type >::swap ( Image< Type > &  )

◆ toImageBase() [1/3]

template<typename Type = Nice::U16>
ImageBase Basda::Image< Type >::toImageBase ( )
inline

◆ toImageBase() [2/3]

template<typename Type = Nice::U16>
ImageBase Basda::Image< Type >::toImageBase ( )
inline

◆ toImageBase() [3/3]

template<typename Type = Nice::U16>
ImageBase Basda::Image< Type >::toImageBase ( )
inline

◆ type() [1/43]

template<typename Type = Nice::U16>
static ImageType Basda::Image< Type >::type ( )
static

◆ type() [2/43]

template<typename Type = Nice::U16>
static ImageType Basda::Image< Type >::type ( )
static

◆ type() [3/43]

template<typename Type = Nice::U16>
static ImageType Basda::Image< Type >::type ( )
static

◆ type() [4/43]

template<>
Basda::ImageType Basda::Image< Nice::U8 >::type ( )

◆ type() [5/43]

template<>
Basda::ImageType Basda::Image< Nice::U8 >::type ( )

◆ type() [6/43]

template<>
Basda::ImageType Basda::Image< Nice::U8 >::type ( )

◆ type() [7/43]

template<>
Basda::ImageType Basda::Image< Nice::U16 >::type ( )

◆ type() [8/43]

template<>
Basda::ImageType Basda::Image< Nice::U16 >::type ( )

◆ type() [9/43]

template<>
Basda::ImageType Basda::Image< Nice::U16 >::type ( )

◆ type() [10/43]

template<>
Basda::ImageType Basda::Image< Nice::U32 >::type ( )

◆ type() [11/43]

template<>
Basda::ImageType Basda::Image< Nice::U32 >::type ( )

◆ type() [12/43]

template<>
Basda::ImageType Basda::Image< Nice::U32 >::type ( )

◆ type() [13/43]

template<>
Basda::ImageType Basda::Image< Nice::I32 >::type ( )

◆ type() [14/43]

template<>
Basda::ImageType Basda::Image< Nice::I32 >::type ( )

◆ type() [15/43]

template<>
Basda::ImageType Basda::Image< Nice::I32 >::type ( )

◆ type() [16/43]

template<>
Basda::ImageType Basda::Image< Nice::I64 >::type ( )

◆ type() [17/43]

template<>
Basda::ImageType Basda::Image< Nice::I64 >::type ( )

◆ type() [18/43]

template<>
Basda::ImageType Basda::Image< Nice::I64 >::type ( )

◆ type() [19/43]

template<>
Basda::ImageType Basda::Image< float >::type ( )

◆ type() [20/43]

template<>
Basda::ImageType Basda::Image< float >::type ( )

◆ type() [21/43]

template<>
Basda::ImageType Basda::Image< float >::type ( )

◆ type() [22/43]

template<>
Basda::ImageType Basda::Image< double >::type ( )

◆ type() [23/43]

template<>
Basda::ImageType Basda::Image< double >::type ( )

◆ type() [24/43]

template<>
Basda::ImageType Basda::Image< double >::type ( )

◆ type() [25/43]

◆ type() [26/43]

◆ type() [27/43]

◆ type() [28/43]

template<>
Basda::ImageType Basda::Image< Nice::U8 >::type ( )

Returns

◆ type() [29/43]

template<>
Basda::ImageType Basda::Image< Nice::U8 >::type ( )

Returns

◆ type() [30/43]

template<>
Basda::ImageType Basda::Image< Nice::U16 >::type ( )

Returns

◆ type() [31/43]

template<>
Basda::ImageType Basda::Image< Nice::U16 >::type ( )

Returns

◆ type() [32/43]

template<>
Basda::ImageType Basda::Image< Nice::U32 >::type ( )

Returns

◆ type() [33/43]

template<>
Basda::ImageType Basda::Image< Nice::U32 >::type ( )

Returns

◆ type() [34/43]

template<>
Basda::ImageType Basda::Image< Nice::I32 >::type ( )

Returns

◆ type() [35/43]

template<>
Basda::ImageType Basda::Image< Nice::I32 >::type ( )

Returns

◆ type() [36/43]

template<>
Basda::ImageType Basda::Image< Nice::I64 >::type ( )

Returns

◆ type() [37/43]

template<>
Basda::ImageType Basda::Image< Nice::I64 >::type ( )

Returns

◆ type() [38/43]

template<>
Basda::ImageType Basda::Image< float >::type ( )

Returns

◆ type() [39/43]

template<>
Basda::ImageType Basda::Image< float >::type ( )

Returns

◆ type() [40/43]

template<>
Basda::ImageType Basda::Image< double >::type ( )

Returns

◆ type() [41/43]

template<>
Basda::ImageType Basda::Image< double >::type ( )

Returns

◆ type() [42/43]


Returns

◆ type() [43/43]


Returns

Friends And Related Function Documentation

◆ Image

template<typename Type = Nice::U16>
template<typename >
friend class Image
friend

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