mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-12-12 23:49:06 +08:00
ocrfeatures: Remove locally used functions from global interface
ReadFeature, WriteFeature are only used locally. Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
a3593d994b
commit
2c78735d97
@ -113,7 +113,7 @@ FEATURE_SET NewFeatureSet(int NumFeatures) {
|
|||||||
* @param FeatureDesc specifies type of feature to read from File
|
* @param FeatureDesc specifies type of feature to read from File
|
||||||
* @return New #FEATURE read from File.
|
* @return New #FEATURE read from File.
|
||||||
*/
|
*/
|
||||||
FEATURE ReadFeature(FILE* File, const FEATURE_DESC_STRUCT* FeatureDesc) {
|
static FEATURE ReadFeature(FILE* File, const FEATURE_DESC_STRUCT* FeatureDesc) {
|
||||||
FEATURE Feature;
|
FEATURE Feature;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
@ -144,7 +144,7 @@ FEATURE_SET ReadFeatureSet(FILE* File, const FEATURE_DESC_STRUCT* FeatureDesc) {
|
|||||||
|
|
||||||
FEATURE_SET FeatureSet = NewFeatureSet(NumFeatures);
|
FEATURE_SET FeatureSet = NewFeatureSet(NumFeatures);
|
||||||
for (int i = 0; i < NumFeatures; i++)
|
for (int i = 0; i < NumFeatures; i++)
|
||||||
AddFeature(FeatureSet, ReadFeature (File, FeatureDesc));
|
AddFeature(FeatureSet, ReadFeature(File, FeatureDesc));
|
||||||
|
|
||||||
return FeatureSet;
|
return FeatureSet;
|
||||||
}
|
}
|
||||||
@ -159,7 +159,7 @@ FEATURE_SET ReadFeatureSet(FILE* File, const FEATURE_DESC_STRUCT* FeatureDesc) {
|
|||||||
* @param Feature feature to write out to str
|
* @param Feature feature to write out to str
|
||||||
* @param str string to write Feature to
|
* @param str string to write Feature to
|
||||||
*/
|
*/
|
||||||
void WriteFeature(FEATURE Feature, STRING* str) {
|
static void WriteFeature(FEATURE Feature, STRING* str) {
|
||||||
for (int i = 0; i < Feature->Type->NumParams; i++) {
|
for (int i = 0; i < Feature->Type->NumParams; i++) {
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
assert(!std::isnan(Feature->Params[i]));
|
assert(!std::isnan(Feature->Params[i]));
|
||||||
|
@ -112,12 +112,8 @@ FEATURE NewFeature(const FEATURE_DESC_STRUCT* FeatureDesc);
|
|||||||
|
|
||||||
FEATURE_SET NewFeatureSet(int NumFeatures);
|
FEATURE_SET NewFeatureSet(int NumFeatures);
|
||||||
|
|
||||||
FEATURE ReadFeature(FILE* File, const FEATURE_DESC_STRUCT* FeatureDesc);
|
|
||||||
|
|
||||||
FEATURE_SET ReadFeatureSet(FILE* File, const FEATURE_DESC_STRUCT* FeatureDesc);
|
FEATURE_SET ReadFeatureSet(FILE* File, const FEATURE_DESC_STRUCT* FeatureDesc);
|
||||||
|
|
||||||
void WriteFeature(FEATURE Feature, STRING* str);
|
|
||||||
|
|
||||||
void WriteFeatureSet(FEATURE_SET FeatureSet, STRING* str);
|
void WriteFeatureSet(FEATURE_SET FeatureSet, STRING* str);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user