#include <djv_jb2encoder.h>
Region detection parameters.
| Celartem::DjVu::JB2Encoder::RegionRecognitionParams::RegionRecognitionParams |
( |
size_t |
inDpi = 300 | ) |
|
|
inline |
Initializes the parameters based on the resolution (dot-per-inch).
- Parameters
-
| inDpi | The image resolution in dot-per-inch. |
| size_t Celartem::DjVu::JB2Encoder::RegionRecognitionParams::colorThreshold |
Color threshold in [0 255], which is used to determine whether two objects are considered to be in same group or not. Larger value accepts more objects in a same group.
| size_t Celartem::DjVu::JB2Encoder::RegionRecognitionParams::distLongMax |
Longer-side distance maximum. For R dpi, the default would be R/5.
| size_t Celartem::DjVu::JB2Encoder::RegionRecognitionParams::distShortMax |
Shorter-side distance maximum. For R dpi, the default would be R/12.5
| size_t Celartem::DjVu::JB2Encoder::RegionRecognitionParams::noiseThreshold |
Noise threshold in pixels. The objects smaller than the threshold considered to be noise. For R dpi, the default would be R/100.
| size_t Celartem::DjVu::JB2Encoder::RegionRecognitionParams::overlapThreshold |
Threshold to determine whether two group areas are overlapped each other.
The documentation for this struct was generated from the following file: