#include <blobs.h>
Definition at line 57 of file blobs.h.
◆ TPOINT() [1/3]
◆ TPOINT() [2/3]
TPOINT::TPOINT |
( |
int16_t |
vx, |
|
|
int16_t |
vy |
|
) |
| |
|
inline |
◆ TPOINT() [3/3]
TPOINT::TPOINT |
( |
const ICOORD & |
ic | ) |
|
|
inline |
Definition at line 60 of file blobs.h.
60 :
x(ic.
x()),
y(ic.
y()) {}
int16_t y() const
access_function
int16_t x() const
access function
◆ IsCrossed()
Definition at line 73 of file blobs.cpp.
75 int b0a1xb0b1, b0b1xb0a0;
76 int a1b1xa1a0, a1a0xa1b0;
78 TPOINT b0a1, b0a0, a1b1, b0b1, a1a0;
91 b0a1xb0b1 =
CROSS(b0a1, b0b1);
92 b0b1xb0a0 =
CROSS(b0b1, b0a0);
93 a1b1xa1a0 =
CROSS(a1b1, a1a0);
96 a1a0xa1b0 = -
CROSS(a1a0, b0a1);
98 return ((b0a1xb0b1 > 0 && b0b1xb0a0 > 0) ||
99 (b0a1xb0b1 < 0 && b0b1xb0a0 < 0)) &&
100 ((a1b1xa1a0 > 0 && a1a0xa1b0 > 0) || (a1b1xa1a0 < 0 && a1a0xa1b0 < 0));
◆ operator+=()
void TPOINT::operator+= |
( |
const TPOINT & |
other | ) |
|
|
inline |
◆ operator/=()
void TPOINT::operator/= |
( |
int |
divisor | ) |
|
|
inline |
◆ operator==()
bool TPOINT::operator== |
( |
const TPOINT & |
other | ) |
const |
|
inline |
Definition at line 70 of file blobs.h.
71 return x == other.
x &&
y == other.
y;
The documentation for this struct was generated from the following files:
- /usr/src/tesseract-ocr.master/src/ccstruct/blobs.h
- /usr/src/tesseract-ocr.master/src/ccstruct/blobs.cpp