8#ifndef ODP_IMAGE_WRAPPER_HPP
9#define ODP_IMAGE_WRAPPER_HPP
12#error This is a C++ include file and cannot be used from plain C
39 static_assert(std::is_same<T, int>::value ||
40 std::is_same<T, float>::value ||
41 std::is_same<T, double>::value,
42 "class ImageWrapper can only be instantiated with int|float|double types");
119 virtual void Save(
const char *filename);
127 virtual void Save(
const char *filename, cpl_type_bpp type_bpp);
153 void Allocate(
size_t size);
168#include "imageWrapper.ipp"
virtual void Read(T *data_ptr, cpl_size width, cpl_size height)
Wrap data from a data buffer.
T * m_data
Object buffer to store copied or casted shared memory areas.
Definition imageWrapper.hpp:156
ImageWrapper()
Class constructor.
ImageWrapper(const ImageWrapper &image)
Copy constructor.
ImageWrapper(const cpl_size xsize, const cpl_size ysize)
Class constructor.
virtual ~ImageWrapper()
Class destructor.
virtual void Save(const char *filename, cpl_type_bpp type_bpp)
Saves image into a FITS file of a specific data type.
virtual void Unload()
Unwrap CPL image.
virtual void Save(const char *filename)
Saves image into a FITS file.
ImageWrapper(const ImageWrapper &image, const cpl_size llx, const cpl_size lly, const cpl_size urx, const cpl_size ury)
Copy constructor.
virtual void SetWrap(bool status)
Set wrapped flag.
virtual bool IsWrapped() const
Check if image was created around a pixel buffer.
This class is C++ wrapper for a CPL image object. It provides a simplified interface that allows to c...
Definition image.hpp:41
Array class source file.
Definition array.cpp:14