Ogre Procedural  0.3.0 unstable
Procedural Geometry & Textures for Ogre3D
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Procedural::Sharpen Class Reference

Increase sharpness on input image. More...

#include <ProceduralTextureModifiers.h>

Inheritance diagram for Procedural::Sharpen:
Inheritance graph
[legend]

Public Types

enum  SHARP_TYPE { SHARP_BASIC, SHARP_GAUSSIAN }
 List of algorithms to blur. More...
 

Public Member Functions

 Sharpen (TextureBufferPtr pBuffer)
 Default constructor. More...
 
SharpensetSize (Ogre::uchar size)
 Set the gaussian block size. More...
 
SharpensetSigma (Ogre::uchar sigma)
 Set sigma constant for gaussian filter. More...
 
SharpensetType (SHARP_TYPE type)
 Set the algorithm to sharp. More...
 
TextureBufferPtr process ()
 Run image manipulation. More...
 
Ogre::String getName ()
 Get name of the filter as string. More...
 
void setLog (bool enable=true)
 Enable/Disable logging. More...
 

Protected Member Functions

void logMsg (Ogre::String msg)
 

Protected Attributes

TextureBufferPtr mBuffer
 
Ogre::String mName
 
bool mLog
 

Detailed Description

Increase sharpness on input image.

Sharp the input image by a specified algorithm.

Examples: SHARP_BASIC

dot_texture_27a.png

SHARP_GAUSSIAN

dot_texture_27b.png

Member Enumeration Documentation

◆ SHARP_TYPE

List of algorithms to blur.

Enumerator
SHARP_BASIC 

Use simplified block filter to sharp.

SHARP_GAUSSIAN 

Use gaussian filter to sharp.

Constructor & Destructor Documentation

◆ Sharpen()

Procedural::Sharpen::Sharpen ( TextureBufferPtr  pBuffer)

Default constructor.

Parameters
pBufferImage buffer where to modify the image.

Member Function Documentation

◆ getName()

Ogre::String Procedural::TextureProcessing::getName ( )
inherited

Get name of the filter as string.

◆ logMsg()

void Procedural::TextureProcessing::logMsg ( Ogre::String  msg)
protectedinherited

◆ process()

TextureBufferPtr Procedural::Sharpen::process ( )
virtual

Run image manipulation.

Returns
Pointer to image buffer which has been set in the constructor.

Implements Procedural::TextureProcessing.

◆ setLog()

void Procedural::TextureProcessing::setLog ( bool  enable = true)
inherited

Enable/Disable logging.

Parameters
enabletrue enables logging of filter actions

◆ setSigma()

Sharpen& Procedural::Sharpen::setSigma ( Ogre::uchar  sigma)

Set sigma constant for gaussian filter.

Parameters
sigmaNew sigma constant for gaussian sharp filter [0, 255] (default 92)

◆ setSize()

Sharpen& Procedural::Sharpen::setSize ( Ogre::uchar  size)

Set the gaussian block size.

Parameters
sizeNew block size for gaussian sharp filter [3, 255] (default 5)

◆ setType()

Sharpen& Procedural::Sharpen::setType ( SHARP_TYPE  type)

Set the algorithm to sharp.

Parameters
typeNew algorithm to sharp (default SHARP_BASIC)

Member Data Documentation

◆ mBuffer

TextureBufferPtr Procedural::TextureProcessing::mBuffer
protectedinherited

◆ mLog

bool Procedural::TextureProcessing::mLog
protectedinherited

◆ mName

Ogre::String Procedural::TextureProcessing::mName
protectedinherited

The documentation for this class was generated from the following file:
Procedural::Image::process
TextureBufferPtr process()
Run image generation.
Procedural::Image
Load an image from a resource.
Definition: ProceduralTextureGenerator.h:334
Procedural::Sharpen::SHARP_GAUSSIAN
@ SHARP_GAUSSIAN
Use gaussian filter to sharp.
Definition: ProceduralTextureModifiers.h:2604
Procedural::Sharpen
Increase sharpness on input image.
Definition: ProceduralTextureModifiers.h:2597
Procedural::Sharpen::setType
Sharpen & setType(SHARP_TYPE type)
Set the algorithm to sharp.
Procedural::Sharpen::process
TextureBufferPtr process()
Run image manipulation.
Procedural::TextureBuffer
class to store image data while processing
Definition: ProceduralTextureBuffer.h:50
Procedural::Image::setFile
Image & setFile(Ogre::String filename, Ogre::String groupname=Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME)
Set the colour of the background.
Procedural::Sharpen::SHARP_BASIC
@ SHARP_BASIC
Use simplified block filter to sharp.
Definition: ProceduralTextureModifiers.h:2603