#include <fpchop.h>
Definition at line 27 of file fpchop.h.
◆ C_OUTLINE_FRAG() [1/3]
tesseract::C_OUTLINE_FRAG::C_OUTLINE_FRAG |
( |
| ) |
|
|
inline |
◆ ~C_OUTLINE_FRAG()
tesseract::C_OUTLINE_FRAG::~C_OUTLINE_FRAG |
( |
| ) |
|
|
inline |
◆ C_OUTLINE_FRAG() [2/3]
tesseract::C_OUTLINE_FRAG::C_OUTLINE_FRAG |
( |
ICOORD |
start_pt, |
|
|
ICOORD |
end_pt, |
|
|
C_OUTLINE * |
outline, |
|
|
int16_t |
start_index, |
|
|
int16_t |
end_index |
|
) |
| |
Definition at line 553 of file fpchop.cpp.
557 {
564 }
567 if (end_index > start_index) {
568 for (
int i = start_index;
i < end_index; ++
i) {
569 steps[
i - start_index] = outline->step_dir(
i);
570 }
571 } else {
572 int len = outline->pathlength();
574 for (;
i < len; ++
i) {
575 steps[
i - start_index] = outline->step_dir(
i);
576 }
577 if (end_index > 0) {
578 for (;
i < end_index + len; ++
i) {
579 steps[
i - start_index] = outline->step_dir(
i - len);
580 }
581 }
582 }
585}
C_OUTLINE_FRAG * other_end
◆ C_OUTLINE_FRAG() [3/3]
tesseract::C_OUTLINE_FRAG::C_OUTLINE_FRAG |
( |
C_OUTLINE_FRAG * |
head, |
|
|
int16_t |
tail_y |
|
) |
| |
◆ close()
C_OUTLINE * tesseract::C_OUTLINE_FRAG::close |
( |
| ) |
|
Definition at line 766 of file fpchop.cpp.
766 {
767 DIR128 *new_steps;
768 int32_t new_stepcount;
769 int16_t fake_count;
770 DIR128 fake_step;
771
774 if (fake_count < 0) {
775 fake_count = -fake_count;
776 fake_step = 32;
777 } else {
778 fake_step = 96;
779 }
780
783 return nullptr;
784 }
785 new_steps = new DIR128[new_stepcount];
787 memset(new_steps +
stepcount, fake_step.get_dir(), fake_count);
788 auto *result =
new C_OUTLINE(
start, new_steps, new_stepcount);
789 delete[] new_steps;
790 return result;
791}
static const int kMaxOutlineLength
TDimension y() const
access_function
TDimension x() const
access function
◆ operator=()
Definition at line 800 of file fpchop.cpp.
801 {
803
810 return *this;
811}
◆ end
ICOORD tesseract::C_OUTLINE_FRAG::end |
◆ other_end
◆ start
ICOORD tesseract::C_OUTLINE_FRAG::start |
◆ stepcount
int32_t tesseract::C_OUTLINE_FRAG::stepcount |
◆ steps
DIR128* tesseract::C_OUTLINE_FRAG::steps |
◆ ycoord
int16_t tesseract::C_OUTLINE_FRAG::ycoord |
The documentation for this class was generated from the following files:
- /media/home/debian/src/github/tesseract-ocr/tesseract/src/textord/fpchop.h
- /media/home/debian/src/github/tesseract-ocr/tesseract/src/textord/fpchop.cpp