#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 );
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). |
Returns the work area memory size required to run the recognition algorithm.
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
.
11/02/2004 Corrected mistakes
06/25/2004 Initial Version