#include <image.h>
Definition at line 25 of file image.h.
◆ Image() [1/2]
tesseract::Image::Image |
( |
| ) |
|
|
default |
◆ Image() [2/2]
tesseract::Image::Image |
( |
Pix * |
pix | ) |
|
|
inline |
◆ clone()
Image tesseract::Image::clone |
( |
| ) |
const |
◆ copy()
Image tesseract::Image::copy |
( |
| ) |
const |
Definition at line 28 of file image.cpp.
28 {
29 return pixCopy(
nullptr,
pix_);
30}
◆ destroy()
void tesseract::Image::destroy |
( |
| ) |
|
◆ isZero()
bool tesseract::Image::isZero |
( |
| ) |
const |
Definition at line 36 of file image.cpp.
36 {
37 l_int32 r = 0;
39 return r == 1;
40}
◆ operator bool()
tesseract::Image::operator bool |
( |
| ) |
const |
|
inlineexplicit |
Definition at line 36 of file image.h.
36{
return pix_ !=
nullptr; }
◆ operator Pix *()
tesseract::Image::operator Pix * |
( |
| ) |
const |
|
inline |
◆ operator Pix **()
tesseract::Image::operator Pix ** |
( |
| ) |
|
|
inlineexplicit |
◆ operator!=()
bool tesseract::Image::operator!= |
( |
decltype(nullptr) |
| ) |
const |
|
inline |
Definition at line 35 of file image.h.
35{
return pix_ !=
nullptr; }
◆ operator&()
Image tesseract::Image::operator& |
( |
Image |
i | ) |
const |
Definition at line 51 of file image.cpp.
51 {
52 return pixAnd(
nullptr,
pix_,
i);
53}
◆ operator&=()
Definition at line 55 of file image.cpp.
55 {
57 return *this;
58}
◆ operator->()
Pix * tesseract::Image::operator-> |
( |
| ) |
const |
|
inline |
◆ operator==()
bool tesseract::Image::operator== |
( |
decltype(nullptr) |
| ) |
const |
|
inline |
Definition at line 34 of file image.h.
34{
return pix_ ==
nullptr; }
◆ operator|()
Image tesseract::Image::operator| |
( |
Image |
i | ) |
const |
Definition at line 42 of file image.cpp.
42 {
43 return pixOr(
nullptr,
pix_,
i);
44}
◆ operator|=()
Definition at line 46 of file image.cpp.
46 {
48 return *this;
49}
◆ pix_
Pix* tesseract::Image::pix_ = nullptr |
The documentation for this class was generated from the following files:
- /media/home/debian/src/github/tesseract-ocr/tesseract/src/ccstruct/image.h
- /media/home/debian/src/github/tesseract-ocr/tesseract/src/ccstruct/image.cpp