mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-12-01 07:59:05 +08:00
Remove unused parameter BlobLength
This fixes two compiler warnings: src/classify/intmatcher.cpp:553:14: warning: unused parameter ‘BlobLength’ [-Wunused-parameter] src/classify/intmatcher.cpp:622:14: warning: unused parameter ‘BlobLength’ [-Wunused-parameter] Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
ac7ea4322a
commit
dd79d56e9f
@ -1754,7 +1754,6 @@ int Classify::MakeNewTemporaryConfig(ADAPT_TEMPLATES Templates,
|
||||
int NumOldProtos;
|
||||
int NumBadFeatures;
|
||||
int MaxProtoId, OldMaxProtoId;
|
||||
int BlobLength = 0;
|
||||
int MaskSize;
|
||||
int ConfigId;
|
||||
TEMP_CONFIG Config;
|
||||
@ -1778,7 +1777,7 @@ int Classify::MakeNewTemporaryConfig(ADAPT_TEMPLATES Templates,
|
||||
OldMaxProtoId = IClass->NumProtos - 1;
|
||||
|
||||
NumOldProtos = im_.FindGoodProtos(IClass, AllProtosOn, AllConfigsOff,
|
||||
BlobLength, NumFeatures, Features,
|
||||
NumFeatures, Features,
|
||||
OldProtos, classify_adapt_proto_threshold,
|
||||
debug_level);
|
||||
|
||||
@ -1788,7 +1787,7 @@ int Classify::MakeNewTemporaryConfig(ADAPT_TEMPLATES Templates,
|
||||
SET_BIT(TempProtoMask, OldProtos[i]);
|
||||
|
||||
NumBadFeatures = im_.FindBadFeatures(IClass, TempProtoMask, AllConfigsOn,
|
||||
BlobLength, NumFeatures, Features,
|
||||
NumFeatures, Features,
|
||||
BadFeatures,
|
||||
classify_adapt_feature_threshold,
|
||||
debug_level);
|
||||
|
@ -458,7 +458,6 @@ int Classify::PruneClasses(const INT_TEMPLATES_STRUCT* int_templates,
|
||||
* Globals:
|
||||
* - local_matcher_multiplier_ Normalization factor multiplier
|
||||
* param ClassTemplate Prototypes & tables for a class
|
||||
* param BlobLength Length of unormalized blob
|
||||
* param NumFeatures Number of features in blob
|
||||
* param Features Array of features
|
||||
* param NormalizationFactor Fudge factor from blob normalization process
|
||||
@ -537,7 +536,6 @@ void IntegerMatcher::Match(INT_CLASS ClassTemplate,
|
||||
* param ClassTemplate Prototypes & tables for a class
|
||||
* param ProtoMask AND Mask for proto word
|
||||
* param ConfigMask AND Mask for config word
|
||||
* param BlobLength Length of unormalized blob
|
||||
* param NumFeatures Number of features in blob
|
||||
* param Features Array of features
|
||||
* param ProtoArray Array of good protos
|
||||
@ -549,7 +547,6 @@ int IntegerMatcher::FindGoodProtos(
|
||||
INT_CLASS ClassTemplate,
|
||||
BIT_VECTOR ProtoMask,
|
||||
BIT_VECTOR ConfigMask,
|
||||
uint16_t BlobLength,
|
||||
int16_t NumFeatures,
|
||||
INT_FEATURE_ARRAY Features,
|
||||
PROTO_ID *ProtoArray,
|
||||
@ -606,7 +603,6 @@ int IntegerMatcher::FindGoodProtos(
|
||||
* @param ClassTemplate Prototypes & tables for a class
|
||||
* @param ProtoMask AND Mask for proto word
|
||||
* @param ConfigMask AND Mask for config word
|
||||
* @param BlobLength Length of unormalized blob
|
||||
* @param NumFeatures Number of features in blob
|
||||
* @param Features Array of features
|
||||
* @param FeatureArray Array of bad features
|
||||
@ -618,7 +614,6 @@ int IntegerMatcher::FindBadFeatures(
|
||||
INT_CLASS ClassTemplate,
|
||||
BIT_VECTOR ProtoMask,
|
||||
BIT_VECTOR ConfigMask,
|
||||
uint16_t BlobLength,
|
||||
int16_t NumFeatures,
|
||||
INT_FEATURE_ARRAY Features,
|
||||
FEATURE_ID *FeatureArray,
|
||||
|
@ -113,7 +113,6 @@ class IntegerMatcher {
|
||||
int FindGoodProtos(INT_CLASS ClassTemplate,
|
||||
BIT_VECTOR ProtoMask,
|
||||
BIT_VECTOR ConfigMask,
|
||||
uint16_t BlobLength,
|
||||
int16_t NumFeatures,
|
||||
INT_FEATURE_ARRAY Features,
|
||||
PROTO_ID *ProtoArray,
|
||||
@ -123,7 +122,6 @@ class IntegerMatcher {
|
||||
int FindBadFeatures(INT_CLASS ClassTemplate,
|
||||
BIT_VECTOR ProtoMask,
|
||||
BIT_VECTOR ConfigMask,
|
||||
uint16_t BlobLength,
|
||||
int16_t NumFeatures,
|
||||
INT_FEATURE_ARRAY Features,
|
||||
FEATURE_ID *FeatureArray,
|
||||
|
Loading…
Reference in New Issue
Block a user