DLLineOrientationCalculation Class Reference

This class is a port of the TwoBit method 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>

List of all members.

Public Member Functions

 DLLineOrientationCalculation ()
virtual ~DLLineOrientationCalculation ()

Static Public Member Functions

static int dlCalculateLineOrientation (const DLImage &in, float fPercentDiff=5.0)


Detailed Description

This class is a port of the TwoBit method 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.


Constructor & Destructor Documentation

DLLineOrientationCalculation::DLLineOrientationCalculation (  ) 

Constructor. Because the public method is static, there is no need to construct a DLLineOrientationCalculation object.

virtual DLLineOrientationCalculation::~DLLineOrientationCalculation (  )  [virtual]

Destructor.


Member Function Documentation

static int DLLineOrientationCalculation::dlCalculateLineOrientation ( const DLImage &  in,
float  fPercentDiff = 5.0 
) [static]

Calculates the Line Orientation (Horizontal or Vertical) of the given image.

Parameters:
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
Returns:
  • DL_VERTICAL
  • DL_HORIZONTAL
  • DL_NO_DECISION (if % difference below fPerfectDiff)
  • DL_NOT_ENOUGH_LINKS (not enough links on page)


The documentation for this class was generated from the following file:
Generated on Fri Feb 23 13:21:07 2007 for DLGetLines by  doxygen 1.5.1