#include <plfilterintensity.h>
Inheritance diagram for PLFilterIntensity:
Public Member Functions | |
PLFilterIntensity (double intensity, PLBYTE offset, double exponent) | |
virtual | ~PLFilterIntensity () |
virtual void | Apply (PLBmp *pBmpSource, PLBmp *pBmpDest) const |
Applies the Filter to pBmpSource and stores the result in pBmpDest. | |
Protected Attributes | |
double | m_intensity |
double | m_offset |
double | m_exponent |
Applies the factor intensityFactor = 1.0 + csupp * pow((v-m_offset), m_exponent) with csupp = intensity/pow(255.0, m_exponent); on the v-Value of the image after a HSV transform. The bitmap stays unchanged for intensity = 20, offset = 128, exponent = 1.
Definition at line 28 of file plfilterintensity.h.
|
Definition at line 18 of file plfilterintensity.cpp. References PLBYTE. |
|
Definition at line 27 of file plfilterintensity.cpp. |
|
Applies the Filter to pBmpSource and stores the result in pBmpDest. The base-class version copies the bitmap before calling ApplyInPlace (pBmpDest). Reimplemented from PLFilter. Definition at line 32 of file plfilterintensity.cpp. References PLBmp::Create(), fp_hsv_to_rgb(), fp_rgb_to_hsv(), PLBmp::GetBitsPerPixel(), PLBmp::GetHeight(), PLBmp::GetLineArray(), PLBmp::GetResolution(), PLBmp::GetWidth(), PLBmp::HasAlpha(), m_exponent, m_intensity, m_offset, PLASSERT, PLBYTE, and pow(). |
Here is the call graph for this function:
|
Definition at line 38 of file plfilterintensity.h. Referenced by Apply(). |
|
Definition at line 36 of file plfilterintensity.h. Referenced by Apply(). |
|
Definition at line 37 of file plfilterintensity.h. Referenced by Apply(). |