src/classify/mfoutline.cpp
void CharNormalizeOutline(MFOUTLINE Outline, const DENORM &cn_denorm) {
  MFOUTLINE First, Current;
  MFEDGEPT *CurrentPoint;

  if (Outline == NIL_LIST) {
    return;
  }

  First = Outline;
  Current = First;
  do {
    CurrentPoint = PointAt(Current);
    FCOORD pos(CurrentPoint->Point.x, CurrentPoint->Point.y);
    cn_denorm.LocalNormTransform(pos, &pos);
    CurrentPoint->Point.x = (pos.x() - UINT8_MAX / 2) * MF_SCALE_FACTOR;
    CurrentPoint->Point.y = (pos.y() - UINT8_MAX / 2) * MF_SCALE_FACTOR;

    Current = NextPointAfter(Current);
  } while (Current != First);

}
/**
 * This routine normalizes each point in Outline by
 * translating it to the specified center and scaling it
 * anisotropically according to the given scale factors.
 * @param Outline     outline to be character normalized
 * @param cn_denorm
 */
This routine normalizes each point in Outline by
translating it to the specified center and scaling it
anisotropically according to the given scale factors.
@param Outline     outline to be character normalized
@param cn_denorm
This routine normalizes each point in Outline by translating it to the specified center and scaling it anisotropically according to the given scale factors . @param Outline outline to be character normalized @param cn_denorm
void CharNormalizeOutline(MFOUTLINE Outline, const DENORM &cn_denorm) {
  MFOUTLINE First, Current;
  MFEDGEPT *CurrentPoint;
  if (Outline == NIL_LIST) {
    return;
  }
  First = Outline;
  Current = First;
  do {
    CurrentPoint = PointAt(Current);
    FCOORD pos(CurrentPoint->Point.x, CurrentPoint->Point.y);
    cn_denorm.LocalNormTransform(pos, &pos);
    CurrentPoint->Point.x = (pos.x() - UINT8_MAX / 2) * MF_SCALE_FACTOR;
    CurrentPoint->Point.y = (pos.y() - UINT8_MAX / 2) * MF_SCALE_FACTOR;
    Current = NextPointAfter(Current);
  } while (Current != First);
}
void CharNormalizeOutline ( MFOUTLINE Outline , const DENORM & cn_denorm ) { MFOUTLINE First , Current ; MFEDGEPT * CurrentPoint ; if ( Outline == NIL_LIST ) { return ; } First = Outline ; Current = First ; do { CurrentPoint = PointAt ( Current ) ; FCOORD pos ( CurrentPoint -> Point . x , CurrentPoint -> Point . y ) ; cn_denorm . LocalNormTransform ( pos , & pos ) ; CurrentPoint -> Point . x = ( pos . x ( ) - UINT8_MAX / 2 ) * MF_SCALE_FACTOR ; CurrentPoint -> Point . y = ( pos . y ( ) - UINT8_MAX / 2 ) * MF_SCALE_FACTOR ; Current = NextPointAfter ( Current ) ; } while ( Current != First ) ; }
This routine normalizes each point in Outline by
 translating it to the specified center and scaling it
 anisotropically according to the given scale factors.
This routine normalizes each point in Outline by translating it to the specified center and scaling it anisotropically according to the given scale factors .