1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 8.0.0.0 for Windows"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<title>PRCInputPatternParam</title> 9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">PRCInputPatternParam <img src="../../image/NTR.gif"align="middle"><img src="../../image/TWL.gif" align="middle"></h1> 15<h2>Definition</h2> 16<dl> 17 <dd><PRE><CODE>#include <nitro/prc.h> 18 19typedef struct PRCInputPatternParam 20{ 21 int normalizeSize; 22 <A href="PRCResampleMethod.html">PRCResampleMethod</A> resampleMethod; 23 int resampleThreshold; 24} PRCInputPatternParam; 25</CODE></PRE></dd> 26</dl> 27 28<h2>Elements</h2> 29<table border="1" width="100%"> 30 <tbody> 31 <TR> 32 <TD width="13%"><EM><STRONG><FONT face="Courier New">normalizeSize</FONT></STRONG></EM></TD> 33 <TD width="87%">Length of the longer direction of a normalized line.</TD> 34 </TR> 35 <TR> 36 <TD width="13%"><EM><STRONG><FONT face="Courier New">resampleMethod</FONT></STRONG></EM></TD> 37 <TD width="87%">Specification of the algorithm used for resampling.</TD> 38 </TR> 39 <TR> 40 <TD width="13%"><EM><STRONG><FONT face="Courier New">resampleThreshold</FONT></STRONG></EM></TD> 41 <TD width="87%">Resampling parameter.</TD> 42 </TR> 43 </tbody> 44</table> 45 46<H2>Description</H2> 47<P>This is an argument to the <CODE><A href="PRC_InitInputPattern.html">PRC_InitInputPatternEx</A></CODE> function.</P> 48<P>In the normalization process, first a bounding box is taken for the entire pattern that is to be normalized. Then, preserving the X Y ratio, it is scaled so that the longer direction becomes the size specified by <CODE>normalizeSize</CODE>. At this time the shorter direction is centered.</P> 49<P>Normalization will not occur if <CODE>normalizeSize</CODE> is set to 0.</P> 50<P>For information on <CODE>resample*</CODE> see <CODE><A href="PRCResampleMethod.html">PRCResampleMethod</A></CODE>.</P> 51<h2>See Also</h2> 52<p><CODE><A href="PRCResampleMethod.html">PRCResampleMethod</A>, <A href="PRC_InitInputPattern.html">PRC_InitInputPattern*</A></CODE></p> 53 54<H2>Revision History</H2> 55<P> 562004/10/28 Changed <i>regularize</i> to <i>normalize</i>.<br> 2004/06/23 Initial version. 57</P> 58<hr><p>CONFIDENTIAL</p></body> 59</html> 60