A modifier that will attempt to add detail to a texture. More...
#include <sharpenmodifier.h>
Inheritance diagram for Mezzanine::Graphics::Procedural::SharpenModifier:
Collaboration diagram for Mezzanine::Graphics::Procedural::SharpenModifier:Public Types | |
| enum | SharpenType { ST_Normal = 0, ST_Gaussian = 1 } |
| An enum used to describe the type of sharpening operation to be performed. More... | |
Public Member Functions | |
| SharpenModifier () | |
| Blank constructor. | |
| virtual | ~SharpenModifier () |
| Class destructor. | |
| virtual String | GetName () const |
| Gets the name of this modifier. More... | |
| virtual void | Modify (TextureBuffer &Buffer) |
| Alters the generated pixels in a TextureBuffer. More... | |
| SharpenModifier & | SetBlockSize (const UInt8 Size) |
| Sets the sample size for each pixel to be processed. More... | |
| SharpenModifier & | SetSharpenType (const SharpenType Sharpen) |
| Sets the type of sharpening operation to be used. More... | |
| SharpenModifier & | SetSigma (const UInt8 Sigma) |
| Sets the sigma for each each pixel to be processed. More... | |
Public Member Functions inherited from Mezzanine::Graphics::Procedural::TextureModifier | |
| TextureModifier () | |
| Blank constructor. | |
| virtual | ~TextureModifier () |
| Class destructor. | |
Protected Attributes | |
| UInt8 | SharpenBlockSize |
| The size of the block of pixels around each pixel to be processed that will be sampled. More... | |
| UInt8 | SharpenSigma |
| The weight surrounding pixels of the processing pixel have, with further pixels in the sample block getting reduced weight. More... | |
| SharpenType | Type |
| The type of Sharpening operation that will be performed. More... | |
A modifier that will attempt to add detail to a texture.
Definition at line 82 of file sharpenmodifier.h.
An enum used to describe the type of sharpening operation to be performed.
| Enumerator | |
|---|---|
| ST_Normal |
Use a simple block filter to sharpen the image. |
| ST_Gaussian |
Use a gaussian filter to sharpen the image. |
Definition at line 86 of file sharpenmodifier.h.
|
virtual |
Gets the name of this modifier.
Implements Mezzanine::Graphics::Procedural::TextureModifier.
Definition at line 145 of file sharpenmodifier.cpp.
|
virtual |
Alters the generated pixels in a TextureBuffer.
| Buffer | The buffer to be modified. |
Implements Mezzanine::Graphics::Procedural::TextureModifier.
Definition at line 93 of file sharpenmodifier.cpp.
| SharpenModifier & Mezzanine::Graphics::Procedural::SharpenModifier::SetBlockSize | ( | const UInt8 | Size | ) |
Sets the sample size for each pixel to be processed.
| Size | The size of the block of pixels around each pixel to be processed that will be sampled. Generally this value should be around in the range of 1 to 5. Initial Value: 5. |
Definition at line 154 of file sharpenmodifier.cpp.
| SharpenModifier & Mezzanine::Graphics::Procedural::SharpenModifier::SetSharpenType | ( | const SharpenType | Sharpen | ) |
Sets the type of sharpening operation to be used.
| Sharpen | The type of Sharpening operation that will be performed. |
Definition at line 151 of file sharpenmodifier.cpp.
| SharpenModifier & Mezzanine::Graphics::Procedural::SharpenModifier::SetSigma | ( | const UInt8 | Sigma | ) |
Sets the sigma for each each pixel to be processed.
| Sigma | The weight surrounding pixels of the processing pixel have, with further pixels in the sample block getting reduced weight. Initial Value: 92. |
Definition at line 157 of file sharpenmodifier.cpp.
|
protected |
The size of the block of pixels around each pixel to be processed that will be sampled.
Definition at line 97 of file sharpenmodifier.h.
|
protected |
The weight surrounding pixels of the processing pixel have, with further pixels in the sample block getting reduced weight.
Definition at line 100 of file sharpenmodifier.h.
|
protected |
The type of Sharpening operation that will be performed.
Definition at line 94 of file sharpenmodifier.h.
1.8.9.1. Thanks to the
Open Icon Library
for help with some of the icons.