PRC_GetRecognitionBufferSize*

C Specification

#include <nitro/prc.h>

u32 PRC_GetRecognitionBufferSize(
int                         maxPointCount,
int                         maxStrokeCount,
const PRCPrototypeDB*       protoDB );

u32 PRC_GetRecognitionBufferSizeEx(
int                         maxPointCount,
int                         maxStrokeCount,
const PRCPrototypeDB*       protoDB,
const PRCRecognizeParam*    param );

Arguments

maxPointCount Maximum point count after processing.
maxStrokeCount Maximum stroke count after processing.
protoDB Sample DB.
param Other parameter values that are dependent on the recognition algorithm (use NULL as the default).

Return Values

Returns the work area memory size required to run the recognition algorithm.

Description

Before calling PRC_GetRecognizedEntry*, allocate at least as much memory as the return value.

The maxPointCount and maxStrokeCount arguments provide maximum numbers of points and strokes respectively. These are assumed in the recognition target PRCInputPattern.

PRC_GetRecognitionBufferSize is equivalent to calling PRC_GetRecognitionBufferSizeEx with param set to NULL.

See Also

PRC_GetRecognizedEntry*

Revision History

11/02/2004 Corrected mistakes
06/25/2004 Initial Version