SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

BotDetect - Real-Time Bot Detection API
 
 

MAN page from RedHat Other XITE-3.3-3.i386.rpm

AFFINE

Section: C Library Functions (3)
Updated: 16 Mar 1998
Index

 

NAME

affine - affine geometric transform

 

SYNTAX


 #include <xite/geometry.h>


 int affine( IBAND inband, IBAND outband,
    double x0, double x1, double x2, double y0,
    double y1, double y2, int ip, int bg );

 

DESCRIPTION

affine performs a linear transform of the coordinatesystem (x, y) to another coordinate system (u,v)All coordinates are adjusted acording to (xstart, ystart).
 outband(x,y) = inband(u,v)
 u = x0 + x1 * x + x2 * y
 v = y0 + y1 * x + y2 * y

The interpolation method ipis
  0 : Nearest neighbor
  1 : Bilinear   interpolation
      g(x) = bi(f(x), f(x+1), d)
      bi(x, y, d) = x(1-d) + yd
  3 ; Cubic      interpolation
      g(x) = cc(f(x-1), f(x), f(x+1), f(x+2), d)
      cc(x, y, z, v, d) = y + d((-x+z) +
             d((2x-2y+z-v) + d(-x+y-z+v)))

bg gives the background pixel value.

 

RESTRICTIONS

inbandand outbandmust have pixel type unsigned byte.

 

RETURN VALUE


 0 : Ok
 1 : Bad input or output pixel type

 

REFERENCE

Wayne Niblack. Digital Image Processing, p 131-150

 

SEE ALSO

affine(1), quadratic(3), rotate(3), shift_band(3),transpose_band(3)

 

AUTHOR

Otto Milvang

 

ID

$Id: affine.c,v 1.32 1997/05/29 16:33:09 svein Exp $


 

Index

NAME
SYNTAX
DESCRIPTION
RESTRICTIONS
RETURN VALUE
REFERENCE
SEE ALSO
AUTHOR
ID

This document was created byman2html,using the manual pages.
 
ICM Bot detect detector