tesseract  5.0.0-alpha-619-ge9db
QUAD_COEFFS Class Reference

#include <quadratc.h>

Public Member Functions

 QUAD_COEFFS ()=default
 
 QUAD_COEFFS (double xsq, float x, float constant)
 
float y (float x) const
 
void move (ICOORD vec)
 

Public Attributes

double a
 
float b
 
float c
 

Detailed Description

Definition at line 24 of file quadratc.h.

Constructor & Destructor Documentation

◆ QUAD_COEFFS() [1/2]

QUAD_COEFFS::QUAD_COEFFS ( )
default

◆ QUAD_COEFFS() [2/2]

QUAD_COEFFS::QUAD_COEFFS ( double  xsq,
float  x,
float  constant 
)
inline

Definition at line 44 of file quadratc.h.

44  { // by vector
45  /************************************************************
46  y - q = a (x - p)^2 + b (x - p) + c
47  y - q = ax^2 - 2apx + ap^2 + bx - bp + c
48  y = ax^2 + (b - 2ap)x + (c - bp + ap^2 + q)
49  ************************************************************/
50  int16_t p = vec.x ();
51  int16_t q = vec.y ();

Member Function Documentation

◆ move()

void QUAD_COEFFS::move ( ICOORD  vec)
inline

Definition at line 58 of file quadratc.h.

60  :
61 };
62 #endif

◆ y()

float QUAD_COEFFS::y ( float  x) const
inline

Definition at line 53 of file quadratc.h.

60  :
61 };

Member Data Documentation

◆ a

double QUAD_COEFFS::a

Definition at line 71 of file quadratc.h.

◆ b

float QUAD_COEFFS::b

Definition at line 72 of file quadratc.h.

◆ c

float QUAD_COEFFS::c

Definition at line 73 of file quadratc.h.


The documentation for this class was generated from the following file: