tbCalcLineOrientation
. It uses dress-right-dress algorithm to form the components into lines of text. in the horizontal and in the vertical direction then gets the mean of the distance between components in hor and vet direction.
More...
#include <DLLineOrientationCalculation.h>
Public Member Functions | |
DLLineOrientationCalculation () | |
virtual | ~DLLineOrientationCalculation () |
Static Public Member Functions | |
static int | dlCalculateLineOrientation (const DLImage &in, float fPercentDiff=5.0) |
tbCalcLineOrientation
. It uses dress-right-dress algorithm to form the components into lines of text. in the horizontal and in the vertical direction then gets the mean of the distance between components in hor and vet direction.
NOTES:This version uses a triangle region to the right of CC.
- - - - | - _____| SLOPE - - - - TO THE RIGHT x_________________________> DD (radius) - | \ - - | \ - - | \ - - | BELOW \ - - | \ | \ | \
Definition at line 75 of file DLLineOrientationCalculation.h.
DLLineOrientationCalculation::DLLineOrientationCalculation | ( | ) |
Constructor. Because the public method is static, there is no need to construct a DLLineOrientationCalculation object.
virtual DLLineOrientationCalculation::~DLLineOrientationCalculation | ( | ) | [virtual] |
Destructor.
static int DLLineOrientationCalculation::dlCalculateLineOrientation | ( | const DLImage & | in, | |
float | fPercentDiff = 5.0 | |||
) | [static] |
Calculates the Line Orientation (Horizontal or Vertical) of the given image.
in | the DLImage to process | |
fPercentDiff | the % difference necessary to make the call, ie 5.0, 1.8, 20.4, etc. Default is 5.0 |