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) |
![]() | |
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... | |
![]() | |
LString | Name [get, set] |
Name of the object. By default, the object has no name. In most cases, LPV classes don't make use of the names. The name is drawn on canvas around the object if ILDrawable::SetDrawName() is enabled. 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 | ![]() ![]() |
[out] | result | ![]() ![]() |
Horizontally oriented edges are represented by bright pixels.
[in] | img | ![]() ![]() |
[out] | result | ![]() ![]() |
Vertically oriented edges are represented by bright pixels.
[in] | img | ![]() ![]() |
[out] | result | ![]() ![]() |
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 in 1 ~ 31, 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 in 1 ~ 31, 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.