tesseract  3.03
MATRIX_COORD Struct Reference

#include <matrix.h>

List of all members.

Public Member Functions

 MATRIX_COORD ()
 MATRIX_COORD (int c, int r)
 ~MATRIX_COORD ()
bool Valid (const MATRIX &m) const
void MapForSplit (int ind)

Static Public Member Functions

static void Delete (void *arg)

Public Attributes

int col
int row

Detailed Description

Definition at line 317 of file matrix.h.


Constructor & Destructor Documentation

Definition at line 323 of file matrix.h.

: col(0), row(0) {}
MATRIX_COORD::MATRIX_COORD ( int  c,
int  r 
) [inline]

Definition at line 324 of file matrix.h.

: col(c), row(r) {}

Definition at line 325 of file matrix.h.

{}

Member Function Documentation

static void MATRIX_COORD::Delete ( void *  arg) [inline, static]

Definition at line 318 of file matrix.h.

                                {
    MATRIX_COORD *c = static_cast<MATRIX_COORD *>(arg);
    delete c;
  }
void MATRIX_COORD::MapForSplit ( int  ind) [inline]

Definition at line 338 of file matrix.h.

                            {
    ASSERT_HOST(row >= col);
    if (col > ind) ++col;
    if (row >= ind) ++row;
    ASSERT_HOST(row >= col);
  }
bool MATRIX_COORD::Valid ( const MATRIX m) const [inline]

Definition at line 327 of file matrix.h.

                                    {
    return 0 <= col && col < m.dimension() &&
           col <= row && row < col + m.bandwidth() && row < m.dimension();
  }

Member Data Documentation

Definition at line 345 of file matrix.h.

Definition at line 346 of file matrix.h.


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