Leptonica 1.68
C Image Processing Library

pagesegtest2.c File Reference

Demonstrates the use of binary morphology for some simple and fast document segmentation operations using: pixScaleToGray2(), pixReduceRankBinaryCascade(), pixOpenBrick(), pixCloseSafeBrick(), pixSeedfillBinary(), pixMorphCompSequence(), pixGetOuterBordersPtaa(). Probably same basic thing that pixGetRegionsBinary() does? More...

#include <stdio.h>
#include <stdlib.h>
#include "allheaders.h"

Go to the source code of this file.

Defines

#define DFLAG   1

Functions

 main (int argc, char **argv)

Variables

static const char * mask_sequence = "r11"
static const char * seed_sequence = "r1143 + o5.5+ x4"
static const char * dilation_sequence = "d3.3"

Detailed Description

Demonstrates the use of binary morphology for some simple and fast document segmentation operations using: pixScaleToGray2(), pixReduceRankBinaryCascade(), pixOpenBrick(), pixCloseSafeBrick(), pixSeedfillBinary(), pixMorphCompSequence(), pixGetOuterBordersPtaa(). Probably same basic thing that pixGetRegionsBinary() does?

Definition in file pagesegtest2.c.


Define Documentation

#define DFLAG   1

Definition at line 51 of file pagesegtest2.c.

Referenced by main().


Function Documentation


Variable Documentation

const char* mask_sequence = "r11" [static]

Definition at line 44 of file pagesegtest2.c.

Referenced by main().

const char* seed_sequence = "r1143 + o5.5+ x4" [static]

Definition at line 47 of file pagesegtest2.c.

Referenced by main().

const char* dilation_sequence = "d3.3" [static]

Definition at line 49 of file pagesegtest2.c.

Referenced by main().

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines