A modifier that will reduce the texture to an outline of the detected edges in the texture.
More...
#include <edgedetectionmodifier.h>
A modifier that will reduce the texture to an outline of the detected edges in the texture.
Definition at line 84 of file edgedetectionmodifier.h.
An enum describing which algorithm to use for edge detection.
Enumerator |
---|
DM_Homogenity |
Detect edges based on difference in colour between the pixel being processed and all surrounding pixels.
|
DM_Difference |
Detect edges based on difference in colour between opposite surrounding pixels.
|
DM_Sobel |
Use the Sobel Operator algorithm to detect edges.
|
DM_Canny |
Use the Canny multi-stage algorthm to detect edges.
|
Definition at line 88 of file edgedetectionmodifier.h.
Gets the colours of the specified pixel and all surrounding pixels.
- Parameters
-
X | The X coordinate of the center pixel to retrieve. |
Y | The Y coordinate of the center pixel to retrieve. |
Buffer | The texture buffer to retrieve pixel data from. |
- Returns
- Returns a pointer to an array of Vector3's that are the colours of the current and surrounding pixels.
Definition at line 469 of file edgedetectionmodifier.cpp.
String Mezzanine::Graphics::Procedural::EdgeDetectionModifier::GetName |
( |
| ) |
const |
|
virtual |
void Mezzanine::Graphics::Procedural::EdgeDetectionModifier::Modify |
( |
TextureBuffer & |
Buffer | ) |
|
|
virtual |
void Mezzanine::Graphics::Procedural::EdgeDetectionModifier::ProcessCanny |
( |
TextureBuffer & |
Buffer | ) |
|
|
protected |
Detect edges using the Canny multi-stage algorithm.
- Parameters
-
Buffer | The texture buffer to be rendered to. |
Definition at line 191 of file edgedetectionmodifier.cpp.
void Mezzanine::Graphics::Procedural::EdgeDetectionModifier::ProcessDifference |
( |
TextureBuffer & |
Buffer | ) |
|
|
protected |
Detect edges in the provided texture by processing pixels above and below the current pixel.
- Parameters
-
Buffer | The texture buffer to be rendered to. |
Definition at line 127 of file edgedetectionmodifier.cpp.
void Mezzanine::Graphics::Procedural::EdgeDetectionModifier::ProcessHomogenity |
( |
TextureBuffer & |
Buffer | ) |
|
|
protected |
Detect edges in the provided texture by processing all surrounding pixels.
- Parameters
-
Buffer | The texture buffer to be rendered to. |
Definition at line 92 of file edgedetectionmodifier.cpp.
void Mezzanine::Graphics::Procedural::EdgeDetectionModifier::ProcessSobel |
( |
TextureBuffer & |
Buffer | ) |
|
|
protected |
Detect edges using the Sobel Operator.
- Parameters
-
Buffer | The texture buffer to be rendered to. |
Definition at line 163 of file edgedetectionmodifier.cpp.
Sets the detection algorith to use for detecting edges.
- Parameters
-
Mode | The detection algorith to use. |
- Returns
- Returns a reference to this.
Definition at line 518 of file edgedetectionmodifier.cpp.
Sets the sigma for the blur stage of the Canny filter.
- Parameters
-
Sigma | The sigma to set for the blur step of the Canny filter. |
- Returns
- Returns a reference to this.
Definition at line 536 of file edgedetectionmodifier.cpp.
Sets the lower threshold for the Canny filter.
- Parameters
-
Low | The lowest value for each colour channel that will be considered valid. |
- Returns
- Returns a reference to this.
Definition at line 524 of file edgedetectionmodifier.cpp.
Sets the upper threshold for the Canny filter.
- Parameters
-
High | The highest value for each colour channel that will be considered valid. |
- Returns
- Returns a reference to this.
Definition at line 530 of file edgedetectionmodifier.cpp.
DetectionMode Mezzanine::Graphics::Procedural::EdgeDetectionModifier::EdgeDetect |
|
protected |
UInt8 Mezzanine::Graphics::Procedural::EdgeDetectionModifier::EdgeDetectionSigma |
|
protected |
UInt8 Mezzanine::Graphics::Procedural::EdgeDetectionModifier::LowerThreshold |
|
protected |
UInt8 Mezzanine::Graphics::Procedural::EdgeDetectionModifier::UpperThreshold |
|
protected |
The documentation for this class was generated from the following files: