tesseract  3.03
/usr/local/google/home/jbreiden/tesseract-ocr-read-only/ccstruct/ccstruct.h
Go to the documentation of this file.
00001 
00002 // File:        ccstruct.h
00003 // Description: ccstruct class.
00004 // Author:      Samuel Charron
00005 //
00006 // (C) Copyright 2006, Google Inc.
00007 // Licensed under the Apache License, Version 2.0 (the "License");
00008 // you may not use this file except in compliance with the License.
00009 // You may obtain a copy of the License at
00010 // http://www.apache.org/licenses/LICENSE-2.0
00011 // Unless required by applicable law or agreed to in writing, software
00012 // distributed under the License is distributed on an "AS IS" BASIS,
00013 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014 // See the License for the specific language governing permissions and
00015 // limitations under the License.
00016 //
00018 
00019 #ifndef TESSERACT_CCSTRUCT_CCSTRUCT_H__
00020 #define TESSERACT_CCSTRUCT_CCSTRUCT_H__
00021 
00022 #include "cutil.h"
00023 
00024 namespace tesseract {
00025 class CCStruct : public CUtil {
00026  public:
00027   CCStruct();
00028   ~CCStruct();
00029 
00030   // Globally accessible constants.
00031   // APPROXIMATIONS of the fractions of the character cell taken by
00032   // the descenders, ascenders, and x-height.
00033   static const double kDescenderFraction;  // = 0.25;
00034   static const double kXHeightFraction;    // = 0.5;
00035   static const double kAscenderFraction;   // = 0.25;
00036   // Derived value giving the x-height as a fraction of cap-height.
00037   static const double kXHeightCapRatio;    // = XHeight/(XHeight + Ascender).
00038 };
00039 
00040 class Tesseract;
00041 }  // namespace tesseract
00042 
00043 
00044 #endif  // TESSERACT_CCSTRUCT_CCSTRUCT_H__
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines