Assigns the approximate regex match callback.
Copy Code
|
|
---|---|
AT_ERRCOUNT ACCUAPI IG_REC_approx_regex_match_cb_set( const HIG_REC_APPROX_REGEX higRecApproxRegex, LPFNIG_REC_APPROX_REGEX_MATCH_CB const lpfnCallback, LPVOID const lpUserData ); |
Name | Type | Description |
---|---|---|
higRecApproxRegex | const HIG_REC_APPROX_REGEX | The handle to an approximate regex instance. |
lpfnCallback | LPFNIG_REC_APPROX_REGEX_MATCH_CB | The callback function to invoke after a qualified match is made. |
lpUserData | LPVOID | The anonymous data passed to the callback function. |
This function does not process image pixels.
Copy Code
|
|
---|---|
AT_ERRCOUNT errCount = 0 ; HIG_REC_APPROX_REGEX higRecApproxRegex = 0 ; AT_INT user_data = 0 ; IG_REC_approx_regex_create( &higRecApproxRegex ) ; errCount = IG_REC_approx_regex_match_cb_set ( higRecApproxRegex, &on_match, &user_data ) ; IG_REC_approx_regex_delete( higRecApproxRegex ) ; |
The callback presents an opportunity for the caller to evaluate the match. Rejected matches shall not be included in the match result vector.