RSLightFields
Disparity map estimator from 3D light fields
Public Member Functions | List of all members
rslf::ImageConverter_uchar Class Reference

Image normalizer to be fitted on a given image, that will further scale images given the preceding fitted values. Enables to maintain a coherent color scale in plots for instance. More...

#include <rslf_plot.hpp>

Public Member Functions

void fit (const Mat &img, bool saturate=true)
 Given an image, fit the internal normalization parameters. More...
 
void copy_and_scale (const Mat &src, Mat &dst)
 Scales the input image to uchar and return a copy. More...
 

Detailed Description

Image normalizer to be fitted on a given image, that will further scale images given the preceding fitted values. Enables to maintain a coherent color scale in plots for instance.

Member Function Documentation

◆ copy_and_scale()

void rslf::ImageConverter_uchar::copy_and_scale ( const Mat src,
Mat dst 
)

Scales the input image to uchar and return a copy.

Parameters
srcInput image
dstOutput image

◆ fit()

void rslf::ImageConverter_uchar::fit ( const Mat img,
bool  saturate = true 
)

Given an image, fit the internal normalization parameters.

Parameters
imgInput image
saturateFlag which indicate whether the normalizer should cut the lower 2% and higher 2% of the range of values (in order to be robust to outliers)

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