Public Member Functions | Public Attributes | List of all members
Celartem::DjVu::JB2Encoder::RegionRecognitionParams Struct Reference

#include <djv_jb2encoder.h>

Public Member Functions

 RegionRecognitionParams (size_t inDpi=300)
 

Public Attributes

size_t distLongMax
 
size_t distShortMax
 
size_t noiseThreshold
 
size_t colorThreshold
 
size_t overlapThreshold
 

Detailed Description

Region detection parameters.

Constructor & Destructor Documentation

Celartem::DjVu::JB2Encoder::RegionRecognitionParams::RegionRecognitionParams ( size_t  inDpi = 300)
inline

Initializes the parameters based on the resolution (dot-per-inch).

Parameters
inDpiThe image resolution in dot-per-inch.

Member Data Documentation

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:

Cuminas DjVu SDK 3.0.33103
This document is made with doxygen 1.8.5 at Sun Dec 15 2013 19:38:07.
Cuminas Logo