imaqSpoke2
Usage
SpokeReport2* imaqSpoke2(Image* image, ROI* roi, SpokeDirection direction, EdgeProcess process, int stepSize, EdgeOptions2* edgeOptions);
Purpose
Finds edges along radial lines specified inside an annular region.
Image Types Supported
IMAQ_IMAGE_U8, IMAQ_IMAGE_I16, IMAQ_IMAGE_SGL
Parameters
Name
|
Type
|
Description
|
---|---|---|
image | Image* | The image in which to find edges. |
roi | ROI* | The rectangular region the function looks in for the edges. The first contour of roi must be a rectangle or a rotated rectangle. |
direction | SpokeDirection | The direction the function search for edges along the search lines. |
process | EdgeProcess | Defines the edges for which the function looks. |
stepSize | int | Specifies the number of pixels between each search line. |
edgeOptions | EdgeOptions2* | Specifies the parameters that are used to compute the edge profile and detect edges. |
Return Value
Type |
Description |
---|---|
SpokeReport2* | On success, this function returns information describing the calculated edges and the spoke used by the function. On failure, this function returns NULL. To get extended error information, call imaqGetLastError(). When you are finished with the information, dispose of it by calling imaqDispose(). |
Parameter Discussion
edgeOptions—Set edgeOptions to NULL to use the default options, as follows:
polarity | IMAQ_SEARCH_FOR_ALL_EDGES |
kernelSize | 3 |
numSearchLines | 3 |
minThreshold | 10.0 |
interpolationType | IMAQ_BILINEAR_FIXED |
columnProcessingMode | IMAQ_MEDIAN_COLUMNS |