9#ifndef ODP_IMAGE_WRAPPER_HPP
10#define ODP_IMAGE_WRAPPER_HPP
13#error This is a C++ include file and cannot be used from plain C
40 static_assert(std::is_same<T, int>::value ||
41 std::is_same<T, float>::value ||
42 std::is_same<T, double>::value,
43 "class ImageWrapper can only be instantiated with int|float|double types");
120 virtual void Save(
const char *filename);
128 virtual void Save(
const char *filename, cpl_type_bpp type_bpp);
154 void Allocate(
size_t size);
169#include "imageWrapper.ipp"
This is the base class that provides the interface to wrap images from shared memory areas....
Definition imageWrapper.hpp:37
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:157
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:44