Sha256: 2d87a3c060649022f5125d9cd9beb5b7ef6de235ca42bb7bacc652a8751cb5f9

Contents?: true

Size: 1.86 KB

Versions: 3

Compression:

Stored size: 1.86 KB

Contents

/**********************************************************************
 * File:        matmatch.h  (Formerly matrix_match.h)
 * Description: matrix matching routines for Tessedit
 * Author:      Chris Newton
 * Created:     Wed Nov 24 15:57:41 GMT 1993
 *
 * (C) Copyright 1993, Hewlett-Packard Ltd.
 ** Licensed under the Apache License, Version 2.0 (the "License");
 ** you may not use this file except in compliance with the License.
 ** You may obtain a copy of the License at
 ** http://www.apache.org/licenses/LICENSE-2.0
 ** Unless required by applicable law or agreed to in writing, software
 ** distributed under the License is distributed on an "AS IS" BASIS,
 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 ** See the License for the specific language governing permissions and
 ** limitations under the License.
 *
 **********************************************************************/

#ifndef           MATMATCH_H
#define           MATMATCH_H

#include          "img.h"
#include          "hosthplb.h"
#include          "notdll.h"

#define BINIM_BLACK 0
#define BINIM_WHITE 1
#define BAD_MATCH 9999.0

extern BOOL_VAR_H (tessedit_display_mm, FALSE, "Display matrix matches");
extern BOOL_VAR_H (tessedit_mm_debug, FALSE,
"Print debug information for matrix matcher");
extern INT_VAR_H (tessedit_mm_prototype_min_size, 3,
"Smallest number of samples in a cluster for a prototype to be used");
float matrix_match(  // returns match score
                   IMAGE *image1,
                   IMAGE *image2);
float match1(  /* returns match score */
             IMAGE *image_w,
             IMAGE *image_n);
void display_images(IMAGE *image_w, IMAGE *image_n, IMAGE *match_image);
ScrollView* display_image(IMAGE *image,
                     const char *title,
                     inT32 x,
                     inT32 y,
                     BOOL8 wait);
#endif

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tesseract_bin-1.0.2 vendor/tesseract-2.04/ccmain/matmatch.h
tesseract_bin-1.0.1 vendor/tesseract-2.04/ccmain/matmatch.h
tesseract_bin-1.0.0 vendor/tesseract-2.04/ccmain/matmatch.h