#include <MaskAdapter.h>
|
| static ports::MaskResult | mask (const ports::MaskRequest &req, std::shared_ptr< core::ports::diagnostics::IDiagnostics > debugger=nullptr) |
| | Builds a whiteout mask for the requested image region.
|
| static cv::Mat | makeLineMask (const cv::Mat &gray, bool horizontal) |
| | Creates a binary line mask for text or table detection.
|
Definition at line 19 of file MaskAdapter.h.
◆ makeLineMask()
| cv::Mat opencv::MaskAdapter::makeLineMask |
( |
const cv::Mat & | gray, |
|
|
bool | horizontal ) |
|
static |
Creates a binary line mask for text or table detection.
- Parameters
-
| gray | The grayscale source image. |
| horizontal | True for a horizontal line mask, false for a vertical one. |
- Returns
- The generated mask image.
Definition at line 17 of file MaskAdapter.cpp.
◆ mask()
Builds a whiteout mask for the requested image region.
- Parameters
-
| req | The mask request containing the source image and crop geometry. |
| debugger | Optional debugger used for trace output. |
- Returns
- The mask result with binary mask bytes and masked image bytes.
Definition at line 52 of file MaskAdapter.cpp.
The documentation for this class was generated from the following files: