tesseract  3.03
INT_FEATURE_STRUCT Struct Reference

#include <intproto.h>

List of all members.

Public Member Functions

 INT_FEATURE_STRUCT ()
 INT_FEATURE_STRUCT (const FCOORD &pos, uinT8 theta)
 INT_FEATURE_STRUCT (int x, int y, int theta)
void print () const

Public Attributes

uinT8 X
uinT8 Y
uinT8 Theta
inT8 CP_misses

Detailed Description

Definition at line 135 of file intproto.h.


Constructor & Destructor Documentation

Definition at line 136 of file intproto.h.

: X(0), Y(0), Theta(0), CP_misses(0) { }
INT_FEATURE_STRUCT::INT_FEATURE_STRUCT ( const FCOORD pos,
uinT8  theta 
)

Definition at line 212 of file intproto.cpp.

  : X(ClipToRange<inT16>(static_cast<inT16>(pos.x() + 0.5), 0, 255)),
    Y(ClipToRange<inT16>(static_cast<inT16>(pos.y() + 0.5), 0, 255)),
    Theta(theta),
    CP_misses(0) {
}
INT_FEATURE_STRUCT::INT_FEATURE_STRUCT ( int  x,
int  y,
int  theta 
)

Definition at line 219 of file intproto.cpp.

  : X(static_cast<uinT8>(ClipToRange(x, 0, MAX_UINT8))),
    Y(static_cast<uinT8>(ClipToRange(y, 0, MAX_UINT8))),
    Theta(static_cast<uinT8>(ClipToRange(theta, 0, MAX_UINT8))),
    CP_misses(0) {
}

Member Function Documentation

void INT_FEATURE_STRUCT::print ( ) const [inline]

Definition at line 148 of file intproto.h.

                     {
    tprintf("(%d,%d):%d\n", X, Y, Theta);
  }

Member Data Documentation

Definition at line 146 of file intproto.h.

Definition at line 145 of file intproto.h.

Definition at line 143 of file intproto.h.

Definition at line 144 of file intproto.h.


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines