Main Page | Namespace List | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

kimageeffect.cpp File Reference

#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)

Define Documentation

#define Blur weight   ) 
 

Value:

total_red+=(weight)*qRed(*s); \
    total_green+=(weight)*qGreen(*s); \
    total_blue+=(weight)*qBlue(*s); \
    total_opacity+=(weight)*qAlpha(*s); \
    s++;

#define Blur256 weight   ) 
 

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++;

#define DegreesToRadians  )     ((x)*M_PI/180.0)
 

#define Edge weight   ) 
 

Value:

total_red+=(weight)*qRed(*s); \
    total_green+=(weight)*qGreen(*s); \
    total_blue+=(weight)*qBlue(*s); \
    total_opacity+=(weight)*qAlpha(*s); \
    s++;

#define Edge256 weight   ) 
 

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++;

#define Emboss weight   ) 
 

Value:

total_red+=(weight)*qRed(*s); \
    total_green+=(weight)*qGreen(*s); \
    total_blue+=(weight)*qBlue(*s); \
    s++;

#define Emboss256 weight   ) 
 

Value:

total_red+=(weight)*qRed(*(cTable+(*s))); \
    total_green+=(weight)*qGreen(*(cTable+(*s))); \
    total_blue+=(weight)*qBlue(*(cTable+(*s))); \
    s++;

#define MaxRGB   255L
 

#define NoiseEpsilon   1.0e-5
 

#define NoiseMask   0x7fff
 

#define Sharpen weight   ) 
 

Value:

total_red+=(weight)*qRed(*s); \
    total_green+=(weight)*qGreen(*s); \
    total_blue+=(weight)*qBlue(*s); \
    total_opacity+=(weight)*qAlpha(*s); \
    s++;

#define Sharpen256 weight   ) 
 

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++;

#define SigmaGaussian   4.0
 

#define SigmaImpulse   0.10
 

#define SigmaLaplacian   10.0
 

#define SigmaMultiplicativeGaussian   0.5
 

#define SigmaPoisson   0.05
 

#define SigmaUniform   4.0
 

#define TauGaussian   20.0
 


Function Documentation

unsigned int intensityValue unsigned int  color  )  [inline]
 


Generated on Fri Feb 27 12:01:40 2004 for Glitch by doxygen 1.3.2