Edge detection on input image.
More...
#include <ProceduralTextureModifiers.h>
Edge detection on input image.
Perform an edge detection with specified algorithm.
Example (Sobel):
◆ DETECTION_TYPE
List of algorithms used for edge detection.
Enumerator |
---|
DETECTION_HOMOGENITY | Homogenity edge detector.
|
DETECTION_DIFFERENCE | Difference edge detector.
|
DETECTION_SOBEL | Sobel edge detector.
|
DETECTION_CANNY | Canny edge detector.
|
◆ EdgeDetection()
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 |
◆ setSigma()
Set sigma constant for canny filter.
- Parameters
-
sigma | New sigma constant for gaussian filter in canny filter [0, 255] (default 92) |
◆ setThresholdHigh()
Set the upper threshold for canny filter.
- Parameters
-
threshold | New upper threshold value for canny filter [0, 255] (default 100) |
◆ setThresholdLow()
Set the lower threshold for canny filter.
- Parameters
-
threshold | New lower threshold value for canny filter [0, 255] (default 20) |
◆ setType()
Set the algorithm to sharp.
- Parameters
-
type | New algorithm to sharp (default SHARP_BASIC) |
◆ 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