1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3<HEAD> 4<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 8.0.0.0 for Windows"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<TITLE>PRC_ResampleStrokes*</TITLE> 8<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 9</HEAD> 10<BODY> 11<H1 align="left">PRC_ResampleStrokes* <img src="../../image/NTR.gif"align="middle"><img src="../../image/TWL.gif" align="middle"></H1> 12<H2>Syntax</H2> 13<DL> 14 <DD> 15 <PRE><CODE>#include <nitro/prc.h> 16 17BOOL PRC_ResampleStrokes_Distance( 18 u16* selectedPoints, 19 int* pSelectedPointNum, 20 int maxPointCount, 21 int maxStrokeCount, 22 const <A href="../stroke/PRCStrokes.html">PRCStrokes</A>* strokes, 23 int threshold, 24 void* buffer ); 25 26BOOL PRC_ResampleStrokes_Angle( 27 u16* selectedPoints, 28 int* pSelectedPointNum, 29 int maxPointCount, 30 int maxStrokeCount, 31 const <A href="../stroke/PRCStrokes.html">PRCStrokes</A>* strokes, 32 int threshold, 33 void* buffer ); 34 35BOOL PRC_ResampleStrokes_Recursive( 36 u16* selectedPoints, 37 int* pSelectedPointNum, 38 int maxPointCount, 39 int maxStrokeCount, 40 const <A href="../stroke/PRCStrokes.html">PRCStrokes</A>* strokes, 41 int threshold, 42 void* buffer ); 43</CODE></PRE> 44</DL> 45<H2>Arguments</H2> 46<TABLE border="1" width="100%"> 47 <TBODY> 48 <TR> 49<TD width="13%"><SPAN class="argument">selectedPoints</SPAN></TD> 50<TD width="87%">Pointer to an array in which the position numbers of the points selected are returned in ascending order.</TD> 51 </TR> 52 <TR> 53<TD width="13%"><SPAN class="argument">pSelectedPointNum</SPAN></TD> 54<TD width="87%">Pointer to the <code>int</code> variable that accepts how many points were returned in <SPAN class="argument">selectedPoints</SPAN>.</TD> 55 </TR> 56 <TR> 57<TD width="13%"><SPAN class="argument">maxPointCount</SPAN></TD> 58<TD width="87%">Maximum number of points after resampling.</TD> 59 </TR> 60 <TR> 61<TD width="13%"><SPAN class="argument">maxStrokeCount</SPAN></TD> 62<TD width="87%">Maximum number of strokes after resampling.</TD> 63 </TR> 64 <TR> 65<TD width="13%"><SPAN class="argument">strokes</SPAN></TD> 66<TD width="87%">Raw input stroke data.</TD> 67 </TR> 68 <TR> 69<TD width="13%"><SPAN class="argument">threshold</SPAN></TD> 70<TD width="87%">Resampling threshold.</TD> 71 </TR> 72 <TR> 73<TD width="13%"><SPAN class="argument">buffer</SPAN></TD> 74<TD width="87%">Pointer to the memory region that will be used during processing.</TD> 75 </TR> 76 </TBODY> 77</TABLE> 78<H2>Return Values</H2> 79<P>If <CODE>TRUE</CODE>, resampling was successful, and a set of points with a valid length was obtained.</P> 80<H2>Description</H2> 81<P>Uses the resampling algorithms to resample stroke data. The result of this function returns in a <code>u16</code> array, <SPAN class="argument">selectedPoints</SPAN>, which is the position number of the points in <code>strokes->points</code> that remain after resampling. The results also return in <SPAN class="argument">pSelectedPointNum</SPAN>, which is the number of points. In the array, the numbers are stored in ascending order. You must allocate a size of at least <SPAN class="argument">maxPointCount</SPAN> for <SPAN class="argument">selectedPoints</SPAN>.</P> 82<P>The <SPAN class="argument">buffer</SPAN> argument provides a pointer to the work area used for the resampling process. The work area requires <code>sizeof(int)*maxPointCount</code>. Allocate this beforehand.</P> 83<P>For details on the resampling algorithms and thresholds, see <A href="PRCResampleMethod.html"><CODE>PRCResampleMethod</CODE></A>.</P> 84<P>This function is not required for normal pattern recognition procedures. They are called automatically from <A href="PRC_InitInputPattern.html"><CODE>PRC_InitInputPattern*</CODE></A>.</P> 85<H2>See Also</H2> 86<P><A href="PRCResampleMethod.html"><CODE>PRCResampleMethod</CODE></A><BR> <A href="PRC_InitInputPattern.html"><CODE>PRC_InitInputPattern*</CODE></A></P> 87<H2>Revision History</H2> 88<P> 892005/03/04 Changed the return values from void to BOOL.<BR>2004/07/06 Initial version. 90</P> 91<hr><p>CONFIDENTIAL</p></body> 92</HTML>