Public Attributes | List of all members
Celartem::DjVu::Segmenter::Params Struct Reference

#include <djv_segmenter.h>

Public Attributes

size_t blockSize
 Processing block size in pixels. More...
 
size_t maxSizeOfNoiseObj
 Maximum size of the noise shapes in pixels. More...
 
size_t noiseHueThreshold
 Noise Hue difference threshold. More...
 
size_t upsample
 Upsampling for segmentation. More...
 
size_t blurRad
 Segmenter pre-filter radius. More...
 
bool detectEdge
 Determines whether to detect edges or not. More...
 
bool thickenShapes
 Determines whether to thicken the objects or not. More...
 
bool useFgIfEmpty
 Determines whether to use foreground (0) for empty mask or not. More...
 

Detailed Description

This structure is used to configure the parameters of segmentation.

Member Data Documentation

size_t Celartem::DjVu::Segmenter::Params::blockSize

Processing block size in pixels.

This value should be larger than 4.
The default is 16.

size_t Celartem::DjVu::Segmenter::Params::blurRad

Segmenter pre-filter radius.

This value is segmenter pre-filter radius to reduce noises.

bool Celartem::DjVu::Segmenter::Params::detectEdge

Determines whether to detect edges or not.

This value is to control the detection of edges surrounding a objects. If any objects are connected to an important object which is considered to be vital to the document readability, the objects may reduce the quality of the important object; they changes the color of the important object during the JB2 color processing.
With this flag set to true, you can remove such undesired interference by removing such objects.
The default is false.

size_t Celartem::DjVu::Segmenter::Params::maxSizeOfNoiseObj

Maximum size of the noise shapes in pixels.

Objects larger than this never be noises.
This value should be in [0 64]. If this value is 0, no object is regarded as a noise.
The default is 4.

size_t Celartem::DjVu::Segmenter::Params::noiseHueThreshold

Noise Hue difference threshold.

This value is the threshold which is used to determine whether an object is a noise or not. If the difference between the hue average of the object and the one of the object background is no more than this value, the object is regarded as a noise and removed.
This value should be in [0 256].
The default is 8.

bool Celartem::DjVu::Segmenter::Params::thickenShapes

Determines whether to thicken the objects or not.

This value is to control the thicken-shape process, which improves the readability when used with Color JB2 images.
The default is false.

size_t Celartem::DjVu::Segmenter::Params::upsample

Upsampling for segmentation.

This value is to upsample the input image for better segmentation result. The output size is not affected by the value.
The value should be in [1 16].
The default is 1.

bool Celartem::DjVu::Segmenter::Params::useFgIfEmpty

Determines whether to use foreground (0) for empty mask or not.

This value is to control which layer to choose if the input image has only one color and no need to segment the image. If this value is true, segmenter writes 0 for all the mask pixels; otherwise writes 1 for all the mask pixels.


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