00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef MATMATCH_H
00021 #define MATMATCH_H
00022
00023 #include "img.h"
00024 #include "hosthplb.h"
00025 #include "notdll.h"
00026
00027 #define BINIM_BLACK 0
00028 #define BINIM_WHITE 1
00029 #define BAD_MATCH 9999.0
00030
00031 extern BOOL_VAR_H (tessedit_display_mm, FALSE, "Display matrix matches");
00032 extern BOOL_VAR_H (tessedit_mm_debug, FALSE,
00033 "Print debug information for matrix matcher");
00034 extern INT_VAR_H (tessedit_mm_prototype_min_size, 3,
00035 "Smallest number of samples in a cluster for a prototype to be used");
00036 float matrix_match(
00037 IMAGE *image1,
00038 IMAGE *image2);
00039 float match1(
00040 IMAGE *image_w,
00041 IMAGE *image_n);
00042 void display_images(IMAGE *image_w, IMAGE *image_n, IMAGE *match_image);
00043 ScrollView* display_image(IMAGE *image,
00044 const char *title,
00045 inT32 x,
00046 inT32 y,
00047 BOOL8 wait);
00048 #endif