Utilities for scanners which perform morphological operations or convolutions.
|
Classes |
struct | gml_TNeighborhood |
| A structured type for 3x3 pixel neighborhoods. More...
|
Functions |
static void | gml_Shift (gml_TNeighborhood &nb, const UInt32 n, const UInt32 c, const UInt32 s) |
| Shift neighborhood nb to the west, and push in the n, c and s values in the newly empty north, center and south slots.
|
static UInt8 | gml_Apply (const gml_TNeighborhood nb, const gml_TNeighborhood kernel, const UInt16 weight) |
| Multiply the terms of nb by those of kernel, divide the result by weight and return the result.
|
static void | gml_Zero (gml_TNeighborhood &nb) |
| Zeroes the given neighborhood.
|
static UInt8 | gml_Morph_GaussianBlur (const gml_TNeighborhood nb) |
| Apply the 3x3 gaussian blur kernel to nb.
|
static UInt8 | gml_Morph_Dilate_Gray (const gml_TNeighborhood nb) |
| Apply the 3x3 dilation operator to nb.
|
static UInt8 | gml_Morph_Erode_Gray (const gml_TNeighborhood nb) |
| Apply the 3x3 erosion operator to nb.
|
static UInt8 | gml_Morph_Dilate_Binary (const gml_TNeighborhood nb) |
| Apply the 3x3 dilation operator to nb.
|
static UInt8 | gml_Morph_Erode_Binary (const gml_TNeighborhood nb) |
| Apply the 3x3 erosion operator to nb.
|
static UInt8 | gml_Morph_SobelX (const gml_TNeighborhood nb) |
| Apply the 3x3 horizontal sobel operator to nb.
|
static UInt8 | gml_Morph_SobelY (const gml_TNeighborhood nb) |
| Apply the 3x3 horizontal sobel operator to nb.
|
static UInt8 | gml_Morph_EdgeX (const gml_TNeighborhood nb) |
| Apply the 3x3 horizontal sobel operator to nb.
|
static UInt8 | gml_Morph_EdgeY (const gml_TNeighborhood nb) |
| Apply the 3x3 horizontal sobel operator to nb.
|
static UInt8 | gml_Morph_AbsSobelX (const gml_TNeighborhood nb) |
| Apply the 3x3 horizontal absolute sobel operator to nb.
|
static UInt8 | gml_Morph_AbsSobelY (const gml_TNeighborhood nb) |
| Apply the 3x3 horizontal absolute sobel operator to nb.
|
static UInt8 | gml_Morph_ConservativeSmooth (const gml_TNeighborhood nb) |
| Return the value of nb's center coefficient clamped between the minimum and maximum values of its neighbors.
|
static void | gml_SortTwoBytes (UInt8 &b0, UInt8 &b1) |
static UInt8 | gml_Morph_Median_bin (const gml_TNeighborhood nb) |
| Return the neighborhood median value. Uses no branching (simple bubble sort).
|
static UInt8 | gml_Morph_Median (const gml_TNeighborhood nb) |
| Return the neighborhood median value. Uses no branching (simple bubble sort).
|