DUNE: Uniform Navigational Environment  2016.09.0
Vision::DFK51BG02H::WhiteBalance Class Reference

Detailed Description

White-balance filter for Bayer 8 (GBRG) images.

Public Member Functions

 WhiteBalance (unsigned w, unsigned h)
 
void setRFactor (float r_factor)
 
void setBFactor (float b_factor)
 
void filter (uint8_t *data)
 

Constructor & Destructor Documentation

Vision::DFK51BG02H::WhiteBalance::WhiteBalance ( unsigned  w,
unsigned  h 
)
inline

Constructor.

Parameters
[in]wimage width.
[in]himage height.

Member Function Documentation

void Vision::DFK51BG02H::WhiteBalance::filter ( uint8_t *  data)
inline

Apply white-balance to data.

Parameters
[in]dataBayer 8 (GBRG) image.

Referenced by Vision::DFK51BG02H::Task::onMain().

void Vision::DFK51BG02H::WhiteBalance::setBFactor ( float  b_factor)
inline

Set B factor.

Parameters
[in]b_factorB factor.

Referenced by Vision::DFK51BG02H::Task::onUpdateParameters().

void Vision::DFK51BG02H::WhiteBalance::setRFactor ( float  r_factor)
inline

Set R factor.

Parameters
[in]r_factorR factor.

Referenced by Vision::DFK51BG02H::Task::onUpdateParameters().

Collaboration diagram for Vision::DFK51BG02H::WhiteBalance:
Collaboration graph