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

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

#include <image.h>

Inheritance diagram for mf::masked_image< Pixel >:
mf::image< masked_elem< Pixel > >

Public Types

using pixel_type = typename base::pixel_type
 
using masked_pixel_type = masked_elem< Pixel >
 
using view_type = typename base::view_type
 
using cv_mat_type = typename base::cv_mat_type
 
using cv_mask_mat_type = cv::Mat_< bool >
 
- Public Types inherited from mf::image< masked_elem< Pixel > >
using pixel_type = masked_elem< Pixel >
 
using view_type = ndarray_view< 2, pixel_type >
 
using cv_mat_type = cv::Mat_< unmasked_type< pixel_type >>
 

Public Member Functions

 masked_image (const view_type &vw)
 
const cv_mask_mat_typecv_mask_mat ()
 
void update_cv_mat ()
 
void commit_cv_mat ()
 
- Public Member Functions inherited from mf::image< masked_elem< Pixel > >
 image (const view_type &vw)
 
const view_typeview () noexcept
 
const cv_mat_typecv_mat ()
 

Detailed Description

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

Two-dimensional masked image with given pixel type.

Derived from image with masked_elem<Pixel> pixel, with additional OpenCV Mat_ for binary mask.

Member Typedef Documentation

template<typename Pixel >
using mf::masked_image< Pixel >::cv_mask_mat_type = cv::Mat_<bool>
template<typename Pixel >
using mf::masked_image< Pixel >::cv_mat_type = typename base::cv_mat_type
template<typename Pixel >
using mf::masked_image< Pixel >::masked_pixel_type = masked_elem<Pixel>
template<typename Pixel >
using mf::masked_image< Pixel >::pixel_type = typename base::pixel_type
template<typename Pixel >
using mf::masked_image< Pixel >::view_type = typename base::view_type

Constructor & Destructor Documentation

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

Member Function Documentation

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

Reimplemented from mf::image< masked_elem< Pixel > >.

template<typename Pixel >
const cv_mask_mat_type& mf::masked_image< Pixel >::cv_mask_mat ( )
inline
template<typename Pixel >
void mf::masked_image< Pixel >::update_cv_mat ( )
virtual

Reimplemented from mf::image< masked_elem< Pixel > >.


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