Tesseract 3.01
/data/source/tesseract-ocr/ccmain/imgscale.cpp File Reference
#include "mfcpch.h"
#include <stdio.h>
#include <stdlib.h>
#include "errcode.h"

Defines

#define f(xc, yc)   ((xc - factor*yc)*(xc - factor*yc))
#define g(oldyc, yc, oldxc, xc)   (factor*factor*(oldyc - yc)*(oldyc - yc)/(abs(oldxc - xc) + 1))

Functions

void dyn_exit (const char s[])
void dyn_prog (int n, int *x, int *y, int ymax, int *oldx, int *oldy, int oldn, float factor)

Define Documentation

#define f (   xc,
  yc 
)    ((xc - factor*yc)*(xc - factor*yc))
#define g (   oldyc,
  yc,
  oldxc,
  xc 
)    (factor*factor*(oldyc - yc)*(oldyc - yc)/(abs(oldxc - xc) + 1))

Function Documentation

void dyn_exit ( const char  s[])
void dyn_prog ( int  n,
int *  x,
int *  y,
int  ymax,
int *  oldx,
int *  oldy,
int  oldn,
float  factor 
)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines