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

QUADRATIC

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

 

NAME

quadratic - quadratic geometric transform

 

SYNTAX


 #include <xite/geometry.h>


 int quadratic( IBAND inband, IBAND outband,
    double* xa, double* ya, int ip, int bg );

 

DESCRIPTION

quadratic performs a quadratic transformation of thecoordinate system (x, y) to another coordinate system (u,v)

All coordinates are adjusted acording to (xstart, ystart).
 outband(x,y) = inband(u,v)
 u = xa[0] + xa[1] * x + xa[2] * y
   + xa[3] * x * x + xa[4] * x * y + xa[5] * y * y
 v = ya[0] + ya[1] * x + ya[2] * y
   + ya[3] * x * x + ya[4] * x * y + ya[5] * y * 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)))
 The bg parameter specifies 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

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

 

AUTHOR

Otto Milvang

 

EXAMPLES

 

ID

$Id: quadratic.c,v 1.30 1997/05/29 16:33:19 svein Exp $


 

Index

NAME
SYNTAX
DESCRIPTION
RESTRICTIONS
RETURN VALUE
REFERENCE
SEE ALSO
AUTHOR
EXAMPLES
ID

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