00001 /****************************************************************************** 00002 ** Filename: speckle.h 00003 ** Purpose: Interface to classifier speckle filtering routines. 00004 ** Author: Dan Johnson 00005 ** History: Mon Mar 11 10:14:16 1991, DSJ, Created. 00006 ** 00007 ** (c) Copyright Hewlett-Packard Company, 1988. 00008 ** Licensed under the Apache License, Version 2.0 (the "License"); 00009 ** you may not use this file except in compliance with the License. 00010 ** You may obtain a copy of the License at 00011 ** http://www.apache.org/licenses/LICENSE-2.0 00012 ** Unless required by applicable law or agreed to in writing, software 00013 ** distributed under the License is distributed on an "AS IS" BASIS, 00014 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00015 ** See the License for the specific language governing permissions and 00016 ** limitations under the License. 00017 ******************************************************************************/ 00018 #ifndef SPECKLE_H 00019 #define SPECKLE_H 00020 00025 #include "baseline.h" 00026 #include "ratngs.h" 00027 00031 /* macro for getting the height of a row of text */ 00032 #define RowHeight(R) ((classify_baseline_normalized)? \ 00033 (BASELINE_SCALE): \ 00034 ((R)->lineheight)) 00035 00039 void AddLargeSpeckleTo(BLOB_CHOICE_LIST *Choices); 00040 00041 BOOL8 LargeSpeckle(TBLOB *Blob, TEXTROW *Row); 00042 00043 #endif