Simple threshold filter.
More...
#include <ProceduralTextureModifiers.h>
Simple threshold filter.
Change luminance curve around given value.
Example:
◆ THRESHOLD_MODE
Selection what to do with image parts below/above the threshould value.
Enumerator |
---|
MODE_EXPAND_DOWNWARDS | Set pixel below threshould value to black.
|
MODE_EXPAND_UPWARDS | Set pixel above threshould value to white.
|
MODE_COMPRESS_BELOW | Set pixel below threshould value to an avarage value of all pixel below threshould value.
|
MODE_COMPRESS_ABOVE | Set pixel above threshould value to an avarage value of all pixel above threshould value.
|
◆ Threshold()
Default constructor.
- Parameters
-
pBuffer | Image buffer where to modify the image. |
◆ getName()
Get name of the filter as string.
◆ logMsg()
void Procedural::TextureProcessing::logMsg |
( |
Ogre::String |
msg | ) |
|
|
protectedinherited |
◆ process()
◆ setLog()
void Procedural::TextureProcessing::setLog |
( |
bool |
enable = true | ) |
|
|
inherited |
Enable/Disable logging.
- Parameters
-
enable | true enables logging of filter actions |
◆ setMode()
Set threshold mode.
- Parameters
-
mode | New mode what to do with pixels below/above threshold value (default MODE_EXPAND_DOWNWARDS) |
◆ setRatio()
Set threshold ratio which affects the painting mode.
- Parameters
-
ratio | New painting factor [0, 255] (default 128) |
◆ setThreshold()
Set threshold value.
- Parameters
-
threshold | New threshold value [0, 255] (default 128) |
◆ mBuffer
◆ mLog
bool Procedural::TextureProcessing::mLog |
|
protectedinherited |
◆ mName
The documentation for this class was generated from the following file:
- ProceduralTextureModifiers.h
class to store image data while processing
Definition: ProceduralTextureBuffer.h:50