This interface provide functionalities of High Dynamic Range Imaging(HDR). More...
Public Member Functions | |
LPVErrorCode | BuildCRF (ILImageList *imgList, LArray< double > exposureTimes) |
void | ExposureFusion (ILImageList *imgList, ILImage *result, double contrastWeight, double saturationWeight, double exposureWeight) |
void | ToneMapping (ILImageList *imgList, ILImage *result, double gamma, double contrastEnhance, double saturationEnhance) |
![]() | |
ILObject * | Copy () |
LPVErrorCode | Load (LString filename) |
void | Reset () |
LPVErrorCode | Save (LString filename) |
BOOL | Valid () |
Additional Inherited Members | |
![]() | |
LString | Name [get, set] |
Name of the object. By default, the object has no name. In most cases, LPV classes don't make use of the names. The name is drawn on canvas around the object if ILDrawable::SetDrawName() is enabled. More... | |
This interface provide functionalities of High Dynamic Range Imaging(HDR).
HDR imaging works with images that captured with different exposure settings. We provide two approach here:
To use this interface, you should create a LHDR object.
LPVErrorCode BuildCRF | ( | ILImageList * | imgList, |
LArray< double > | exposureTimes | ||
) |
Calibrate the CRF.
[in] | imgList | ![]() ![]() |
[in] | exposureTimes | The exposure times corresponding to the images, in μs |
error | Return error code if anything is wrong. |
void ExposureFusion | ( | ILImageList * | imgList, |
ILImage * | result, | ||
double | contrastWeight, | ||
double | saturationWeight, | ||
double | exposureWeight | ||
) |
HDR imaging using exposure fusion approach.
[in] | imgList | ![]() ![]() |
[out] | result | ![]() ![]() |
[in] | contrastWeight | The weight of contrast, by default, it's 1. |
[in] | saturationWeight | The weight of saturation, by default it's 1. |
[in] | exposureWeight | The weight of exposure, by default, it's 1. |
void ToneMapping | ( | ILImageList * | imgList, |
ILImage * | result, | ||
double | gamma, | ||
double | contrastEnhance, | ||
double | saturationEnhance | ||
) |
HDR imaging using tone-mapping approach, the CRF is required.
[in] | imgList | The input images with different exposure settings |
[out] | result | ![]() ![]() |
[in] | gamma | The gamma correction, 1(default) implies no correction, > 1 brightens the image and < 1 darkens it. |
[in] | contrastEnhance | The contrast enhancement, resulting on logarithmic scale, i.e. \( log(max / min) \), where max and min are maximum and minimum luminance values of the resulting image. The default value is 4. |
[in] | saturationEnhance | The saturation enhancement, 1(default) preserves saturation, > 1 increase saturation while < 1 decrease it. |