src/classify/mfoutline.cpp
void Classify::NormalizeOutlines(LIST Outlines, float *XScale, float *YScale) {
  MFOUTLINE Outline;

  switch (classify_norm_method) {
    case character:
      ASSERT_HOST(!"How did NormalizeOutlines get called in character mode?");
      break;

    case baseline:
      iterate(Outlines) {
        Outline = static_cast<MFOUTLINE>(Outlines->first_node());
        NormalizeOutline(Outline, 0.0);
      }
      *XScale = *YScale = MF_SCALE_FACTOR;
      break;
  }
/*---------------------------------------------------------------------------*/
/**
 * This routine normalizes every outline in Outlines
 * according to the currently selected normalization method.
 * It also returns the scale factors that it used to do this
 * scaling.  The scale factors returned represent the x and
 * y sizes in the normalized coordinate system that correspond
 * to 1 pixel in the original coordinate system.
 * Outlines are changed and XScale and YScale are updated.
 *
 * Globals:
 * - classify_norm_method  method being used for normalization
 * - classify_char_norm_range map radius of gyration to this value
 * @param Outlines  list of outlines to be normalized
 * @param XScale    x-direction scale factor used by routine
 * @param YScale    y-direction scale factor used by routine
 */
This routine normalizes every outline in Outlines
according to the currently selected normalization method.
It also returns the scale factors that it used to do this
scaling.  The scale factors returned represent the x and
y sizes in the normalized coordinate system that correspond
to 1 pixel in the original coordinate system.
Outlines are changed and XScale and YScale are updated.

- classify_norm_method  method being used for normalization
- classify_char_norm_range map radius of gyration to this value
@param Outlines  list of outlines to be normalized
@param XScale    x-direction scale factor used by routine
@param YScale    y-direction scale factor used by routine
This routine normalizes every outline in Outlines according to the currently selected normalization method . It also returns the scale factors that it used to do this scaling . The scale factors returned represent the x and y sizes in the normalized coordinate system that correspond to 1 pixel in the original coordinate system . Outlines are changed and XScale and YScale are updated . - classify_norm_method method being used for normalization - classify_char_norm_range map radius of gyration to this value @param Outlines list of outlines to be normalized @param XScale x - direction scale factor used by routine @param YScale y - direction scale factor used by routine
void Classify::NormalizeOutlines(LIST Outlines, float *XScale, float *YScale) {
  MFOUTLINE Outline;
  switch (classify_norm_method) {
    case character:
      ASSERT_HOST(!"How did NormalizeOutlines get called in character mode?");
      break;
    case baseline:
      iterate(Outlines) {
        Outline = static_cast<MFOUTLINE>(Outlines->first_node());
        NormalizeOutline(Outline, 0.0);
      }
      *XScale = *YScale = MF_SCALE_FACTOR;
      break;
  }
void Classify :: NormalizeOutlines ( LIST Outlines , float * XScale , float * YScale ) { MFOUTLINE Outline ; switch ( classify_norm_method ) { case character : ASSERT_HOST ( ! " " ) ; break ; case baseline : iterate ( Outlines ) { Outline = static_cast < MFOUTLINE > ( Outlines -> first_node ( ) ) ; NormalizeOutline ( Outline , 0.0 ) ; } * XScale = * YScale = MF_SCALE_FACTOR ; break ; }
This routine normalizes every outline in Outlines
 according to the currently selected normalization method.
This routine normalizes every outline in Outlines according to the currently selected normalization method .