Lagrange
ImageView< T > Class Template Reference

Inherits ImageViewBase.

Public Member Functions

 ImageView (size_t width, size_t height, size_t alignment)
 
 ImageView (std::shared_ptr< ImageStorage > _storage, const size_t width, const size_t height, const size_t stride_0_in_byte=sizeof(T), const size_t stride_1_in_row=1, const size_t offset_0_in_byte=0, const size_t offset_1_in_row=0)
 
 ImageView (const ImageView< T > &other)
 
 ImageView (ImageView< T > &&other)
 
ImageView< T > & operator= (const ImageView< T > &other)
 
ImageView< T > & operator= (ImageView< T > &&other)
 
void reset ()
 
bool resize (size_t width, size_t height, size_t alignment)
 
bool view (std::shared_ptr< ImageStorage > _storage, const size_t width, const size_t height, const size_t stride_0_in_byte=sizeof(T), const size_t stride_1_in_row=1, const size_t offset_0_in_byte=0, const size_t offset_1_in_row=0)
 
ImageStorage::aligned_vector< unsigned char > pack () const
 
bool unpack (const ImageStorage::aligned_vector< unsigned char > &buf)
 
template<typename S , typename CONVERTOR >
bool convert_from (const ImageView< S > &other, size_t alignment, const CONVERTOR &convertor)
 
template<typename S >
bool convert_from (const ImageView< S > &other, size_t alignment)
 
void clear (const T val)
 
T & operator() (size_t x, size_t y)
 
const T & operator() (size_t x, size_t y) const
 
virtual ImagePrecision get_precision () const final
 
virtual ImageChannel get_channel () const final
 
virtual bool is_compact_row () const final
 
virtual bool is_compact () const final
 
virtual const void * get_data () const final
 
virtual void * get_data () final
 
- Public Member Functions inherited from ImageViewBase
virtual ImagePrecision get_precision () const =0
 
virtual ImageChannel get_channel () const =0
 
virtual bool is_compact_row () const =0
 
virtual bool is_compact () const =0
 
virtual const void * get_data () const =0
 
virtual void * get_data ()=0
 
Eigen::Matrix< size_t, 2, 1 > get_view_size () const
 
Eigen::Matrix< size_t, 2, 1 > get_view_stride_in_byte () const
 
Eigen::Matrix< size_t, 2, 1 > get_view_offset_in_byte () const
 
std::shared_ptr< ImageStorageget_storage ()
 

Additional Inherited Members

- Protected Attributes inherited from ImageViewBase
Eigen::Matrix< size_t, 2, 1 > m_view_size
 
Eigen::Matrix< size_t, 2, 1 > m_view_stride_in_byte
 
Eigen::Matrix< size_t, 2, 1 > m_view_offset_in_byte
 
std::shared_ptr< ImageStoragem_storage
 

Member Function Documentation

◆ get_precision()

virtual ImagePrecision get_precision ( ) const
inlinefinalvirtual

Implements ImageViewBase.

◆ get_channel()

virtual ImageChannel get_channel ( ) const
inlinefinalvirtual

Implements ImageViewBase.

◆ is_compact_row()

virtual bool is_compact_row ( ) const
inlinefinalvirtual

Implements ImageViewBase.

◆ is_compact()

virtual bool is_compact ( ) const
inlinefinalvirtual

Implements ImageViewBase.

◆ get_data() [1/2]

virtual const void * get_data ( ) const
inlinefinalvirtual

Implements ImageViewBase.

◆ get_data() [2/2]

virtual void * get_data ( )
inlinefinalvirtual

Implements ImageViewBase.


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