PRC_GetRecognitionBufferSize*

Syntax

#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 a PRC_GetRecognizedEntry* function, allocate at least as much memory as the size given by this 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

2004/11/02 Corrected mistakes.
2004/06/25 Initial version.


CONFIDENTIAL