This interface provide functionalities of edge extraction. More...
Public Member Functions | |
void | GradientFull (ILImage *img, ILImage *result) |
void | GradientH (ILImage *img, ILImage *result) |
void | GradientV (ILImage *img, ILImage *result) |
void | SetEdgeKernel (LPVEdgeKernel kType, int kWidth, int kHeight) |
void | SetEdgePolarity (LPVPolarity xPolarity, enum LPVPolarity yPolarity) |
Public Member Functions inherited from ILObject | |
ILObject * | Copy () |
LPVErrorCode | Load (LString filename) |
void | Reset () |
LPVErrorCode | Save (LString filename) |
BOOL | Valid () |
Properties | |
LPVPolarity | EdgePolarityX [get] |
The polarity of horizontally oriented edges in left-to-right direction. More... | |
LPVPolarity | EdgePolarityY [get] |
The polarity of vertically oriented edges in top-down direction. More... | |
int | KernelHeight [get] |
The height of the kernel size. More... | |
LPVEdgeKernel | KernelType [get] |
The kernel type. More... | |
int | KernelWidth [get] |
The width of the kernel size. More... | |
This interface provide functionalities of edge extraction.
To use this interface, you should create a LEdgeFilter object.
Both vertically and horizontally oriented edges are represented by bright pixels.
[in] | img | The input image |
[out] | result | Return result image |
Horizontally oriented edges are represented by bright pixels.
[in] | img | The input image |
[out] | result | Return result image |
Vertically oriented edges are represented by bright pixels.
[in] | img | The input image |
[out] | result | Return result image |
void SetEdgeKernel | ( | LPVEdgeKernel | kType, |
int | kWidth, | ||
int | kHeight | ||
) |
Set the kernel used in edge filtering of specified type and size.
[in] | kType | The kernel Type. |
[in] | kWidth | The width of the kernel size, should be an odd number, say, 3, 5, 7, etc. If a kernel size is set to be 1, the kernel degenerated to be \( (-1, 1) \) no mater what kernel type it is. |
[in] | kHeight | The height of the kernel size, should be an odd number, say, 3, 5, 7, etc. |
void SetEdgePolarity | ( | LPVPolarity | xPolarity, |
enum LPVPolarity | yPolarity | ||
) |
Set the edge polarity of interest in edge filtering.
[in] | xPolarity | The polarity of horizontally oriented edges in left-to-right direction. By default, it accept either polarity. |
[in] | yPolarity | The polarity of vertically oriented edges in top-down direction. By default, it accept either polarity. |
|
get |
The polarity of horizontally oriented edges in left-to-right direction.
|
get |
The polarity of vertically oriented edges in top-down direction.
|
get |
The height of the kernel size.
|
get |
The kernel type.
|
get |
The width of the kernel size.