

#include <nitro/prc.h>
typedef struct PRCInputPatternParam
{
int normalizeSize;
PRCResampleMethod resampleMethod;
int resampleThreshold;
} PRCInputPatternParam;
| normalizeSize | 正規化後の長辺の長さ |
| resampleMethod | リサンプリングに用いるアルゴリズムの指定 |
| resampleThreshold | リサンプリングのパラメータ |
PRC_InitInputPatternEx() の引数です。
正規化のプロセスでは、まず正規化したいパターンの全体のバウンディングボックスをとり、それから長辺がnormalizeSize で指定したサイズになるように縦横比を維持したままでスケーリングを行います。このとき、短辺方向はセンタリングされます。
normalizeSize に 0 を指定すると、正規化を行いません。
resample* に関しては、PRCResampleMethod を参照してください。
PRCResampleMethod, PRC_InitInputPattern*
2004/10/28 regularize を normalize に変更
2004/06/23 初版