#include <math.h>#include <qimage.h>#include <stdlib.h>#include <iostream>#include "kimageeffect.h"Namespaces | |
| namespace | std |
Defines | |
| #define | MaxRGB 255L |
| #define | DegreesToRadians(x) ((x)*M_PI/180.0) |
| #define | NoiseEpsilon 1.0e-5 |
| #define | NoiseMask 0x7fff |
| #define | SigmaUniform 4.0 |
| #define | SigmaGaussian 4.0 |
| #define | SigmaImpulse 0.10 |
| #define | SigmaLaplacian 10.0 |
| #define | SigmaMultiplicativeGaussian 0.5 |
| #define | SigmaPoisson 0.05 |
| #define | TauGaussian 20.0 |
| #define | Edge(weight) |
| #define | Edge256(weight) |
| #define | Sharpen(weight) |
| #define | Sharpen256(weight) |
| #define | Emboss(weight) |
| #define | Emboss256(weight) |
| #define | Blur(weight) |
| #define | Blur256(weight) |
Functions | |
| unsigned int | intensityValue (unsigned int color) |
|
|
Value: total_red+=(weight)*qRed(*s); \
total_green+=(weight)*qGreen(*s); \
total_blue+=(weight)*qBlue(*s); \
total_opacity+=(weight)*qAlpha(*s); \
s++;
|
|
|
Value: total_red+=(weight)*qRed(*(cTable+(*s))); \
total_green+=(weight)*qGreen(*(cTable+(*s))); \
total_blue+=(weight)*qBlue(*(cTable+(*s))); \
total_opacity+=(weight)*qAlpha(*(cTable+(*s))); \
s++;
|
|
|
|
|
|
Value: total_red+=(weight)*qRed(*s); \
total_green+=(weight)*qGreen(*s); \
total_blue+=(weight)*qBlue(*s); \
total_opacity+=(weight)*qAlpha(*s); \
s++;
|
|
|
Value: total_red+=(weight)*qRed(*(cTable+(*s))); \
total_green+=(weight)*qGreen(*(cTable+(*s))); \
total_blue+=(weight)*qBlue(*(cTable+(*s))); \
total_opacity+=(weight)*qAlpha(*(cTable+(*s))); \
s++;
|
|
|
Value: total_red+=(weight)*qRed(*s); \
total_green+=(weight)*qGreen(*s); \
total_blue+=(weight)*qBlue(*s); \
s++;
|
|
|
Value: total_red+=(weight)*qRed(*(cTable+(*s))); \
total_green+=(weight)*qGreen(*(cTable+(*s))); \
total_blue+=(weight)*qBlue(*(cTable+(*s))); \
s++;
|
|
|
|
|
|
|
|
|
|
|
|
Value: total_red+=(weight)*qRed(*s); \
total_green+=(weight)*qGreen(*s); \
total_blue+=(weight)*qBlue(*s); \
total_opacity+=(weight)*qAlpha(*s); \
s++;
|
|
|
Value: total_red+=(weight)*qRed(*(cTable+(*s))); \
total_green+=(weight)*qGreen(*(cTable+(*s))); \
total_blue+=(weight)*qBlue(*(cTable+(*s))); \
total_opacity+=(weight)*qAlpha(*(cTable+(*s))); \
s++;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.2