RSLightFields
Disparity map estimator from 3D light fields
Typedefs | Functions
rslf_types.hpp File Reference

Implement a toolbox of utilitary functions. More...

#include <opencv2/core/core.hpp>
Include dependency graph for rslf_types.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

using rslf::Mat = cv::Mat
 RSLF Matrix class (cv::Mat)
 
template<typename T >
using rslf::Vec = std::vector< T >
 RSLF Vector class (std::vector)
 

Functions

std::string rslf::type2str (int type)
 Get an explicit form of an OpenCV type. More...
 
template<typename DataType >
DataType rslf::nan_type ()
 Implement NaN.
 
template<typename DataType >
bool rslf::is_nan_type (DataType x)
 Check whether the element is NaN.
 
template<>
bool rslf::is_nan_type< float > (float x)
 
template<>
bool rslf::is_nan_type< cv::Vec3f > (cv::Vec3f x)
 
template<typename DataType >
cv::Scalar rslf::zero_scalar ()
 Impelment zero.
 
template<>
cv::Scalar rslf::zero_scalar< float > ()
 
template<>
cv::Scalar rslf::zero_scalar< cv::Vec3f > ()
 
template<typename DataType >
float rslf::norm (DataType x)
 Implement the euclidean norm.
 

Detailed Description

Implement a toolbox of utilitary functions.

Function Documentation

◆ type2str()

std::string rslf::type2str ( int  type)

Get an explicit form of an OpenCV type.

Parameters
typeThe type to disambiguate.
Returns
A string describing the type.