mf
Media Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | List of all members
mf::image< Pixel > Class Template Reference

Two-dimensional image with given pixel type. More...

#include <image.h>

Public Types

using pixel_type = Pixel
 
using view_type = ndarray_view< 2, pixel_type >
 
using cv_mat_type = cv::Mat_< unmasked_type< pixel_type >>
 

Public Member Functions

 image (const view_type &vw)
 
const view_typeview () noexcept
 
const cv_mat_typecv_mat ()
 
virtual void update_cv_mat ()
 
virtual void commit_cv_mat ()
 

Detailed Description

template<typename Pixel>
class mf::image< Pixel >

Two-dimensional image with given pixel type.

Represented using an ndarray_view, and the corresponding OpenCV Mat_ pointing to same data.

Member Typedef Documentation

template<typename Pixel>
using mf::image< Pixel >::cv_mat_type = cv::Mat_<unmasked_type<pixel_type>>
template<typename Pixel>
using mf::image< Pixel >::pixel_type = Pixel
template<typename Pixel>
using mf::image< Pixel >::view_type = ndarray_view<2, pixel_type>

Constructor & Destructor Documentation

template<typename Pixel >
mf::image< Pixel >::image ( const view_type vw)

Member Function Documentation

template<typename Pixel >
void mf::image< Pixel >::commit_cv_mat ( )
virtual

Reimplemented in mf::masked_image< Pixel >.

template<typename Pixel>
const cv_mat_type& mf::image< Pixel >::cv_mat ( )
inline
template<typename Pixel >
void mf::image< Pixel >::update_cv_mat ( )
virtual

Reimplemented in mf::masked_image< Pixel >.

template<typename Pixel>
const view_type& mf::image< Pixel >::view ( )
inlinenoexcept

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