code
stringlengths
1
2.06M
language
stringclasses
1 value
#include <limits.h> #include "matrix.h" #include "/home/seecs/Downloads/APLab2/AAR_lab2/Sources/gtest-1.7.0/include/gtest/gtest.h" TEST(AddTest, Blah) { int test_arr1[5][5] = {{1,1,1,1,1},{1,1,1,1,1},{1,1,1,1,1},{1,1,1,1,1},{1,1,1,1,1}}; int test_arr2[5][5] = {{1,2,3,4,5},{1,2,3,4,5},{1,2,3,4,5},{1,2,3,4,5},{1,2,3,4...
C++
#include <iostream> using namespace std; // matrix size is fixed to 5x5 class matrix_manipulation { private: int** result; public: matrix_manipulation(); int** m_add (int m1[5][5], int m2[5][5]); int** m_subtract (int m1[5][5], int m2[5][5]); int** m_multiply (int m1[5][5], int m2[5][5]); };
C++
#include "matrix.h" matrix_manipulation::matrix_manipulation() { result = new int*[5]; for (int i = 0; i < 5; i++) { result[i] = new int[5]; for (int j = 0; j < 5; j++) { result[i][j] = 0; } } } int** matrix_manipulation::m_add (int m1[5][5], int m2[5][5]) { for (int i=0; i<5; i++) { for (int j=0; j...
C++
/* * Copyright (C) 2007 The Android Open Source Project * * 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 appli...
C++
/////////////////////////////////////////////////////////////////////// // File: wordrec.cpp // Description: wordrec class. // Author: Samuel Charron // // (C) Copyright 2006, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance wit...
C++
/////////////////////////////////////////////////////////////////////// // File: language_model.cpp // Description: Functions that utilize the knowledge about the properties, // structure and statistics of the language to help recognition. // Author: Daria Antonova // Created: Mon Nov 11 11...
C++
/////////////////////////////////////////////////////////////////////// // File: pain_points.cpp // Description: Functions that utilize the knowledge about the properties // of the paths explored by the segmentation search in order // to "pain points" - the locations in the ratings matr...
C++
/////////////////////////////////////////////////////////////////////// // File: language_model.h // Description: Functions that utilize the knowledge about the properties, // structure and statistics of the language to help segmentation // search. // Author: Daria Antonova // Crea...
C++
/////////////////////////////////////////////////////////////////////// // File: params_model.h // Description: Trained feature serialization for language parameter training. // Author: David Eger // Created: Mon Jun 11 11:26:42 PDT 2012 // // (C) Copyright 2011, Google Inc. // Licensed under the Apache...
C++
/********************************************************************** * File: drawfx.cpp (Formerly drawfx.c) * Description: Draw things to do with feature extraction. * Author: Ray Smith * Created: Mon Jan 27 11:02:16 GMT 1992 * * (C) Copyright 1992, Hewlett-Packard Ltd. ** Licensed under the Apache ...
C++
/////////////////////////////////////////////////////////////////////// // File: wordrec.h // Description: wordrec class. // Author: Samuel Charron // // (C) Copyright 2006, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with ...
C++
/////////////////////////////////////////////////////////////////////// // File: params_model.cpp // Description: Trained language model parameters. // Author: David Eger // Created: Mon Jun 11 11:26:42 PDT 2012 // // (C) Copyright 2012, Google Inc. // Licensed under the Apache License, Version 2.0 (the...
C++
/////////////////////////////////////////////////////////////////////// // File: associate.h // Description: Structs, classes, typedefs useful for the segmentation // search. Functions for scoring segmentation paths according // to their character widths, gap widths and seam cuts. // Au...
C++
/////////////////////////////////////////////////////////////////////// // File: segsearch.h // Description: Segmentation search functions. // Author: Daria Antonova // Created: Mon Jun 23 11:26:43 PDT 2008 // // (C) Copyright 2009, Google Inc. // Licensed under the Apache License, Version 2.0 (the "Lic...
C++
/////////////////////////////////////////////////////////////////////// // File: associate.cpp // Description: Functions for scoring segmentation paths according to // their character widths, gap widths and seam cuts. // Author: Daria Antonova // Created: Mon Mar 8 11:26:43 PDT 2010 // // (...
C++
/////////////////////////////////////////////////////////////////////// // File: lm_pain_points.h // Description: Functions that utilize the knowledge about the properties // of the paths explored by the segmentation search in order // to generate "pain points" - the locations in the ra...
C++
/////////////////////////////////////////////////////////////////////// // File: lm_consistency.cpp // Description: Struct for recording consistency of the paths representing // OCR hypotheses. // Author: Rika Antonova // Created: Mon Jun 20 11:26:43 PST 2012 // // (C) Copyright 2012, Goog...
C++
/////////////////////////////////////////////////////////////////////// // File: lm_state.cpp // Description: Structures and functionality for capturing the state of // segmentation search guided by the language model. // Author: Rika Antonova // Created: Mon Jun 20 11:26:43 PST 2012 // // ...
C++
/********************************************************************** * File: tface.c (Formerly tface.c) * Description: C side of the Tess/tessedit C/C++ interface. * Author: Ray Smith * Created: Mon Apr 27 11:57:06 BST 1992 * * (C) Copyright 1992, Hewlett-Packard Ltd. ** Licensed under the Apache Li...
C++
/////////////////////////////////////////////////////////////////////// // File: lm_state.h // Description: Structures and functionality for capturing the state of // segmentation search guided by the language model. // // Author: Rika Antonova // Created: Mon Jun 20 11:26:43 PST 2012 // //...
C++
/////////////////////////////////////////////////////////////////////// // File: lm_consistency.h // Description: Struct for recording consistency of the paths representing // OCR hypotheses. // Author: Rika Antonova // Created: Mon Jun 20 11:26:43 PST 2012 // // (C) Copyright 2012, Google...
C++
/********************************************************************** * File: pango_font_info.h * Description: Font-related objects and helper functions * Author: Ranjith Unnikrishnan * Created: Mon Nov 18 2013 * * (C) Copyright 2013, Google Inc. * Licensed under the Apache License, Version 2.0...
C++
/********************************************************************** * File: fileio.h * Description: File I/O utilities. * Author: Samuel Charron * Created: Tuesday, July 9, 2013 * * (C) Copyright 2013, Google Inc. * Licensed under the Apache License, Version 2.0 (the "License"); you may not ...
C++
/////////////////////////////////////////////////////////////////////// // File: wordlist2dawg.cpp // Description: Program to generate a DAWG from a word list file // Author: Thomas Kielbus // Created: Thu May 10 18:11:42 PDT 2007 // // (C) Copyright 2006, Google Inc. // Licensed under the Apache Licens...
C++
// Copyright 2011 Google Inc. All Rights Reserved. // Author: rays@google.com (Ray Smith) // 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 // Un...
C++
// Copyright 2008 Google Inc. All Rights Reserved. // Author: scharron@google.com (Samuel Charron) // // 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/LICENS...
C++
/****************************************************************************** ** Filename: mftraining.c ** Purpose: Separates training pages into files for each character. ** Strips from files only the features and there parameters of the feature type mf. ** Author: Dan Johnson ** Revisment: ...
C++
/********************************************************************** * File: boxchar.h * Description: Simple class to associate a Tesseract classification unit with * its bounding box so that the boxes can be rotated as the image * is rotated for degradation. Also includes routi...
C++
/********************************************************************** * File: pango_font_info.cpp * Description: Font-related objects and helper functions * Author: Ranjith Unnikrishnan * Created: Mon Nov 18 2013 * * (C) Copyright 2013, Google Inc. * Licensed under the Apache License, Version 2...
C++
#include "commandlineflags.h" #ifdef USE_STD_NAMESPACE namespace tesseract { bool IntFlagExists(const char* flag_name, inT32* value) { STRING full_flag_name("FLAGS_"); full_flag_name += flag_name; GenericVector<IntParam*> empty; IntParam *p = ParamUtils::FindParam<IntParam>( full_flag_name.string(), Glo...
C++
/********************************************************************** * File: commandlineflags.h * Description: Header file for commandline flag parsing. * Author: Ranjith Unnikrishnan * Created: July 2013 * * (C) Copyright 2013, Google Inc. ** Licensed under the Apache License, Version 2.0 (th...
C++
/********************************************************************** * File: icuerrorcode.h * Description: Wrapper class for UErrorCode, with conversion operators for * direct use in ICU C and C++ APIs. * Author: Fredrik Roubert * Created: Thu July 4 2013 * * Features: * - The co...
C++
/********************************************************************** * File: degradeimage.cpp * Description: Function to degrade an image (usually of text) as if it * has been printed and then scanned. * Authors: Ray Smith * Created: Tue Nov 19 2013 * * (C) Copyright 2013, Google I...
C++
/////////////////////////////////////////////////////////////////////// // File: ambiguous_words.cpp // Description: A program that takes a text file with a list of words as // input (one per line) and outputs a file with the words // that were found in the dictionary followed by the wo...
C++
// Copyright 2008 Google Inc. All Rights Reserved. // Author: scharron@google.com (Samuel Charron) // // 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/LICENS...
C++
/********************************************************************** * File: normstrngs.h * Description: Utilities to normalize and manipulate UTF-32 and * UTF-8 strings. * Author: Ranjith Unnikrishnan * Created: Thu July 4 2013 * * (C) Copyright 2013, Google Inc. * Licensed unde...
C++
/********************************************************************** * File: stringrenderer.cpp * Description: Class for rendering UTF-8 text to an image, and retrieving * bounding boxes around each grapheme cluster. * Author: Ranjith Unnikrishnan * Created: Mon Nov 18 2013 * * (C...
C++
// Copyright 2011 Google Inc. All Rights Reserved. // Author: rays@google.com (Ray Smith) // 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 // Un...
C++
/////////////////////////////////////////////////////////////////////// // File: unicharset_extractor.cpp // Description: Unicode character/ligature set extractor. // Author: Thomas Kielbus // Created: Wed Jun 28 17:05:01 PDT 2006 // // (C) Copyright 2006, Google Inc. // Licensed under the Apache Licens...
C++
/////////////////////////////////////////////////////////////////////// // File: combine_tessdata // Description: Creates a unified traineddata file from several // data files produced by the training process. // Author: Daria Antonova // Created: Wed Jun 03 11:26:43 PST 2009 // // (C) Copy...
C++
/********************************************************************** * File: degradeimage.h * Description: Function to degrade an image (usually of text) as if it * has been printed and then scanned. * Authors: Ray Smith * Created: Tue Nov 19 2013 * * (C) Copyright 2013, Google Inc...
C++
/********************************************************************** * File: normstrngs.cpp * Description: Utilities to normalize and manipulate UTF-32 and * UTF-8 strings. * Author: Ranjith Unnikrishnan * Created: Thu July 4 2013 * * (C) Copyright 2013, Google Inc. * Licensed un...
C++
/********************************************************************** * File: boxchar.cpp * Description: Simple class to associate a Tesseract classification unit with * its bounding box so that the boxes can be rotated as the image * is rotated for degradation. Also includes rou...
C++
/****************************************************************************** ** Filename: MergeNF.c ** Purpose: Program for merging similar nano-feature protos ** Author: Dan Johnson ** History: Wed Nov 21 09:55:23 1990, DSJ, Created. ** ** (c) Copyright Hewlett-Packard Company, 1988. ** Licens...
C++
/////////////////////////////////////////////////////////////////////// // File: dawg2wordlist.cpp // Description: Program to create a word list from a DAWG and unicharset. // Author: David Eger // Created: Thu 22 Dec 2011 // // (C) Copyright 2011, Google Inc. // Licensed under the Apache License, Versi...
C++
/********************************************************************** * File: tlog.cpp * Description: Variant of printf with logging level controllable by a * commandline flag. * Author: Ranjith Unnikrishnan * Created: Wed Nov 20 2013 * * (C) Copyright 2013, Google Inc. ** License...
C++
// This program reads a unicharset file, puts the result in a UNICHARSET // object, fills it with properties about the unichars it contains and writes // the result back to a file. #include <stdlib.h> #include <string.h> #include <string> #include "commandlineflags.h" #include "fileio.h" #include "genericvector.h" #i...
C++
/********************************************************************** * File: stringrenderer.h * Description: Class for rendering UTF-8 text to an image, and retrieving * bounding boxes around each grapheme cluster. * * Instances are created using a font description string * ...
C++
/********************************************************************** * File: util.h * Description: Misc STL string utility functions. * Author: Samuel Charron * Created: Mon Nov 18 2013 * * (C) Copyright 2013, Google Inc. * Licensed under the Apache License, Version 2.0 (the "License"); * you...
C++
/********************************************************************** * File: ligature_table.cpp * Description: Class for adding and removing optional latin ligatures, * conditional on codepoint support by a specified font * (if specified). * Author: Ranjith Unnikrishnan * ...
C++
/********************************************************************** * File: ligature_table.h * Description: Class for adding and removing optional latin ligatures, * conditional on codepoint support by a specified font * (if specified). * Author: Ranjith Unnikrishnan * Cr...
C++
/****************************************************************************** ** Filename: cntraining.cpp ** Purpose: Generates a normproto and pffmtable. ** Author: Dan Johnson ** Revisment: Christy Russon ** History: Fri Aug 18 08:53:50 1989, DSJ, Created. ** 5/25/90, DSJ, Adapted to multiple...
C++
/********************************************************************** * File: fileio.cpp * Description: File I/O utilities. * Author: Samuel Charron * Created: Tuesday, July 9, 2013 * * (C) Copyright 2013, Google Inc. * Licensed under the Apache License, Version 2.0 (the "License"); you may not...
C++
/********************************************************************** * File: getopt.c * Description: Re-implementation of the unix code. * Author: Ray Smith * Created: Tue Nov 28 05:52:50 MST 1995 * * (C) Copyright 1995, Hewlett-Packard Co. ** Licensed under the Apache License, Version 2.0 (the...
C++
/********************************************************************** * File: text2image.cpp * Description: Program to generate OCR training pages. Given a text file it * outputs an image with a given font and degradation. * * Note that since the results depend on the fonts avail...
C++
/****************************************************************************** ** Filename: featdefs.c ** Purpose: Definitions of currently defined feature types. ** Author: Dan Johnson ** History: Mon May 21 10:26:21 1990, DSJ, Created. ** ** (c) Copyright Hewlett-Packard Company, 1988. ** Lice...
C++
/****************************************************************************** ** Filename: features.h ** Purpose: Generic definition of a feature. ** Author: Dan Johnson ** History: Sun May 20 10:28:30 1990, DSJ, Created. ** ** (c) Copyright Hewlett-Packard Company, 1988. ** Licensed under the ...
C++
// Copyright 2010 Google Inc. All Rights Reserved. // Author: rays@google.com (Ray Smith) // // 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 // ...
C++
/****************************************************************************** ** Filename: blobclass.c ** Purpose: High level blob classification and training routines. ** Author: Dan Johnson ** History: 7/21/89, DSJ, Created. ** ** (c) Copyright Hewlett-Pack...
C++
/****************************************************************************** ** Filename: clustertool.c ** Purpose: Misc. tools for use with the clustering routines ** Author: Dan Johnson ** History: 6/6/89, DSJ, Created. ** ** (c) Copyright Hewlett-Packard Company, 1988. ** Licensed under the Apache License...
C++
/****************************************************************************** ** Filename: features.c ** Purpose: Generic definition of a feature. ** Author: Dan Johnson ** History: Mon May 21 10:49:04 1990, DSJ, Created. ** ** (c) Copyright Hewlett-Packard Company, 1988. ** Licensed under the ...
C++
// Copyright 2010 Google Inc. All Rights Reserved. // Author: rays@google.com (Ray Smith) /////////////////////////////////////////////////////////////////////// // File: intfeaturespace.cpp // Description: Indexed feature space based on INT_FEATURE_STRUCT. // Created: Wed Mar 24 11:21:27 PDT 2010 // // Lice...
C++
/****************************************************************************** ** Filename: mfx.c ** Purpose: Micro feature extraction routines ** Author: Dan Johnson ** History: 7/21/89, DSJ, Created. ** ** (c) Copyright Hewlett-Packard Company, 1988. ** Lic...
C++
// Copyright 2011 Google Inc. All Rights Reserved. // Author: rays@google.com (Ray Smith) /////////////////////////////////////////////////////////////////////// // File: intfeaturedist.cpp // Description: Fast set-difference-based feature distance calculator. // Created: Thu Sep 01 13:07:30 PDT 2011 // // L...
C++
/////////////////////////////////////////////////////////////////////// // File: classify.cpp // Description: classify class. // Author: Samuel Charron // // (C) Copyright 2006, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance w...
C++
/****************************************************************************** ** Filename: intmatcher.h ** Purpose: Interface to high level generic classifier routines. ** Author: Robert Moss ** History: Wed Feb 13 15:24:15 MST 1991, RWM, Created. ** ** (c) Copyright Hewlett-Packard Company, 198...
C++
/****************************************************************************** ** Filename: fpoint.c ** Purpose: Abstract data type for a 2D point (floating point coords) ** Author: Dan Johnson ** History: Thu Apr 12 10:44:15 1990, DSJ, Created. ** ** (c) Copyright Hewlett-Packard Company, 1988. ...
C++
// Copyright 2010 Google Inc. All Rights Reserved. // Author: rays@google.com (Ray Smith) // // 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 // ...
C++
/****************************************************************************** ** Filename: float2int.c ** Purpose: Routines for converting float features to int features ** Author: Dan Johnson ** History: Wed Mar 13 07:47:48 1991, DSJ, Created. ** ** (c) Copyright Hewlett-Packard Company, 1988. ...
C++
// Copyright 2011 Google Inc. All Rights Reserved. // Author: rays@google.com (Ray Smith) // // 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 // ...
C++
/****************************************************************************** ** Filename: extract.c ** Purpose: Generic high level feature extractor routines. ** Author: Dan Johnson ** History: Sun Jan 21 09:44:08 1990, DSJ, Created. ** ** (c) Copyright Hewlett-Packard Company, 1988. ** Licens...
C++
/****************************************************************************** ** Filename: mfoutline.c ** Purpose: Interface to outline struct used for extracting features ** Author: Dan Johnson ** History: Thu May 17 08:14:18 1990, DSJ, Created. ** ** (c) Copyright Hewlett-Packard Company, 1988...
C++
/****************************************************************************** ** Filename: xform2d.c ** Purpose: Library routines for performing 2D point transformations ** Author: Dan Johnson ** History: Fri Sep 22 09:54:17 1989, DSJ, Created. ** ** (c) Copyright Hewlett-Packard Company, 1988. ...
C++
/****************************************************************************** ** Filename: normfeat.c ** Purpose: Definition of char normalization features. ** Author: Dan Johnson ** History: 12/14/90, DSJ, Created. ** ** (c) Copyright Hewlett-Packard Company, 1988. ** Licensed under the Apache...
C++
// Copyright 2011 Google Inc. All Rights Reserved. // Author: rays@google.com (Ray Smith) /////////////////////////////////////////////////////////////////////// // File: shapeclassifier.h // Description: Base interface class for classifiers that return a // shape index. // Author: Ray Smith //...
C++
/****************************************************************************** ** Filename: adaptmatch.c ** Purpose: High level adaptive matcher. ** Author: Dan Johnson ** History: Mon Mar 11 10:00:10 1991, DSJ, Created. ** ** (c) Copyright Hewlett-Packard Company, 1988. ** Licensed under the Ap...
C++
/****************************************************************************** ** Filename: kdtree.cpp ** Purpose: Routines for managing K-D search trees ** Author: Dan Johnson ** History: 3/10/89, DSJ, Created. ** 5/23/89, DSJ, Added circular feature capability. ** 7/13/89, DSJ, Made tree n...
C++
/****************************************************************************** ** Filename: intproto.h ** Purpose: Definition of data structures for integer protos. ** Author: Dan Johnson ** History: Thu Feb 7 12:58:45 1991, DSJ, Created. ** ** (c) Copyright Hewlett-Packard Company, 1988. ** Li...
C++
// Copyright 2011 Google Inc. All Rights Reserved. // Author: rays@google.com (Ray Smith) // // 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 // ...
C++
// Copyright 2011 Google Inc. All Rights Reserved. // Author: rays@google.com (Ray Smith) /////////////////////////////////////////////////////////////////////// // File: shapeclassifier.h // Description: Base interface class for classifiers that return a // shape index. // Author: Ray Smith //...
C++
// Copyright 2010 Google Inc. All Rights Reserved. // Author: rays@google.com (Ray Smith) /////////////////////////////////////////////////////////////////////// // File: mastertrainer.h // Description: Trainer to build the MasterClassifier. // Author: Ray Smith // Created: Wed Nov 03 18:07:01 PDT 2010 ...
C++
/****************************************************************************** ** Filename: picofeat.c ** Purpose: Definition of pico-features. ** Author: Dan Johnson ** History: 9/4/90, DSJ, Created. ** ** (c) Copyright Hewlett-Packard Company, 1988. ** Licensed under the Apache License, Versio...
C++
/****************************************************************************** ** Filename: mf.c ** Purpose: Micro-feature interface to flexible feature extractor. ** Author: Dan Johnson ** History: Thu May 24 09:08:38 1990, DSJ, Created. ** ** (c) Copyright Hewlett-Packard Company, 1988. ** Lic...
C++
/****************************************************************************** ** Filename: extract.h ** Purpose: Interface to high level generic feature extraction. ** Author: Dan Johnson ** History: 1/21/90, DSJ, Created. ** ** (c) Copyright Hewlett-Packard Company, 1988. ** Licensed under the...
C++
// Copyright 2011 Google Inc. All Rights Reserved. // Author: rays@google.com (Ray Smith) /////////////////////////////////////////////////////////////////////// // File: tessclassifier.cpp // Description: Tesseract implementation of a ShapeClassifier. // Author: Ray Smith // Created: Tue Nov 22 14:16:2...
C++
// Copyright 2010 Google Inc. All Rights Reserved. // Author: rays@google.com (Ray Smith) /////////////////////////////////////////////////////////////////////// // File: intfeaturemap.cpp // Description: Encapsulation of IntFeatureSpace with IndexMapBiDi // to provide a subspace mapping and fast fe...
C++
/****************************************************************************** ** Filename: intproto.c ** Purpose: Definition of data structures for integer protos. ** Author: Dan Johnson ** History: Thu Feb 7 14:38:16 1991, DSJ, Created. ** ** (c) Copyright Hewlett-Packard Company, 1988. ** Li...
C++
// Copyright 2010 Google Inc. All Rights Reserved. // Author: rays@google.com (Ray Smith) /////////////////////////////////////////////////////////////////////// // File: intfeaturespace.h // Description: Indexed feature space based on INT_FEATURE_STRUCT. // Created: Wed Mar 24 10:55:30 PDT 2010 // // Licens...
C++
/****************************************************************************** ** Filename: intmatcher.c ** Purpose: Generic high level classification routines. ** Author: Robert Moss ** History: Wed Feb 13 17:35:28 MST 1991, RWM, Created. ** Mon Mar 11 16:33:...
C++
// Copyright 2011 Google Inc. All Rights Reserved. // Author: rays@google.com (Ray Smith) /////////////////////////////////////////////////////////////////////// // File: intfeaturedist.h // Description: Fast set-difference-based feature distance calculator. // Created: Thu Sep 01 12:14:30 PDT 2011 // // Lic...
C++
/****************************************************************************** ** Filename: adaptive.c ** Purpose: Adaptive matcher. ** Author: Dan Johnson ** History: Fri Mar 8 10:00:21 1991, DSJ, Created. ** ** (c) Copyright Hewlett-Packard Company, 1988. ** Licensed under the Apache License,...
C++
/****************************************************************************** ** Filename: normmatch.c ** Purpose: Simple matcher based on character normalization features. ** Author: Dan Johnson ** History: Wed Dec 19 16:18:06 1990, DSJ, Created. ** ** (c) Copyright Hewlett-Packard Company, 198...
C++
// Copyright 2010 Google Inc. All Rights Reserved. // Author: rays@google.com (Ray Smith) /////////////////////////////////////////////////////////////////////// // File: shapetable.cpp // Description: Class to map a classifier shape index to unicharset // indices and font indices. // Author: R...
C++
// Copyright 2010 Google Inc. All Rights Reserved. // Author: rays@google.com (Ray Smith) /////////////////////////////////////////////////////////////////////// // File: intfeaturemap.h // Description: Encapsulation of IntFeatureSpace with IndexMapBiDi // to provide a subspace mapping and fast feat...
C++
// Copyright 2011 Google Inc. All Rights Reserved. // Author: rays@google.com (Ray Smith) /////////////////////////////////////////////////////////////////////// // File: tessclassifier.h // Description: Tesseract implementation of a ShapeClassifier. // Author: Ray Smith // Created: Tue Nov 22 14:10:45 ...
C++
// Copyright 2010 Google Inc. All Rights Reserved. // Author: rays@google.com (Ray Smith) // // 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 // ...
C++
/****************************************************************************** ** Filename: outfeat.c ** Purpose: Definition of outline-features. ** Author: Dan Johnson ** History: 11/13/90, DSJ, Created. ** ** (c) Copyright Hewlett-Packard Company, 1988. ** Licensed under the Apache License, Ve...
C++
// Copyright 2010 Google Inc. All Rights Reserved. // Author: rays@google.com (Ray Smith) /////////////////////////////////////////////////////////////////////// // File: shapetable.h // Description: Class to map a classifier shape index to unicharset // indices and font indices. // Author: Ray...
C++
/****************************************************************************** ** Filename: cluster.c ** Purpose: Routines for clustering points in N-D space ** Author: Dan Johnson ** History: 5/29/89, DSJ, Created. ** ** (c) Copyright Hewlett-Packard Company, 1988. ** Licensed under the Apache License, Versio...
C++
// Copyright 2010 Google Inc. All Rights Reserved. // Author: rays@google.com (Ray Smith) /////////////////////////////////////////////////////////////////////// // File: mastertrainer.cpp // Description: Trainer to build the MasterClassifier. // Author: Ray Smith // Created: Wed Nov 03 18:10:01 PDT 201...
C++