textord/blobcmpl.h File Reference

Go to the source code of this file.

Defines

Functions


Define Documentation

#define BLOB_MATCHING_ON

Definition at line 24 of file blobcmpl.h.


Function Documentation

float compare_blobs ( PBLOB blob1,
ROW row1,
PBLOB blob2,
ROW row2 
)

Compare 2 blobs and return the rating.

Definition at line 57 of file paircmp.cpp.

References PBLOB::baseline_normalise(), and compare_bln_blobs().

Referenced by compare_blob_pairs(), and find_repeated_chars().

00061                                {
00062   PBLOB *bn_blob1;               //baseline norm
00063   PBLOB *bn_blob2;
00064   DENORM denorm1, denorm2;
00065   float rating;                  //match result
00066 
00067   bn_blob1 = blob1->baseline_normalise (row1, &denorm1);
00068   bn_blob2 = blob2->baseline_normalise (row2, &denorm2);
00069   rating = compare_bln_blobs (bn_blob1, &denorm1, bn_blob2, &denorm2);
00070   delete bn_blob1;
00071   delete bn_blob2;
00072   return rating;
00073 }


Generated on Wed Feb 28 19:49:24 2007 for Tesseract by  doxygen 1.5.1