Home
last modified time | relevance | path

Searched refs:Params (Results 1 – 13 of 13) sorted by relevance

/external/tesseract/classify/
Dmf.cpp63 Feature->Params[MFDirection] = OldFeature[ORIENTATION]; in ExtractMicros()
64 Feature->Params[MFXPosition] = OldFeature[XPOSITION]; in ExtractMicros()
65 Feature->Params[MFYPosition] = OldFeature[YPOSITION]; in ExtractMicros()
66 Feature->Params[MFLength] = OldFeature[MFLENGTH]; in ExtractMicros()
72 Feature->Params[MFBulge1] = 0.0f; in ExtractMicros()
73 Feature->Params[MFBulge2] = 0.0f; in ExtractMicros()
78 assert(!isnan(Feature->Params[i])); in ExtractMicros()
Doutfeat.cpp96 Feature->Params[OutlineFeatDir] = NormalizedAngleFrom(Start, End, 1.0); in AddOutlineFeatureToSet()
97 Feature->Params[OutlineFeatX] = AverageOf(Start->x, End->x); in AddOutlineFeatureToSet()
98 Feature->Params[OutlineFeatY] = AverageOf(Start->y, End->y); in AddOutlineFeatureToSet()
99 Feature->Params[OutlineFeatLength] = DistanceBetween(*Start, *End); in AddOutlineFeatureToSet()
175 Length = Feature->Params[OutlineFeatLength]; in NormalizeOutlineX()
176 TotalX += Feature->Params[OutlineFeatX] * Length; in NormalizeOutlineX()
183 Feature->Params[OutlineFeatX] -= Origin; in NormalizeOutlineX()
Dnormmatch.cpp97 Match = (Feature->Params[CharNormLength] * in ComputeNormMatch()
98 Feature->Params[CharNormLength] * 500.0 + in ComputeNormMatch()
99 Feature->Params[CharNormRx] * in ComputeNormMatch()
100 Feature->Params[CharNormRx] * 8000.0 + in ComputeNormMatch()
101 Feature->Params[CharNormRy] * in ComputeNormMatch()
102 Feature->Params[CharNormRy] * 8000.0); in ComputeNormMatch()
117 Delta = Feature->Params[CharNormY] - Proto->Mean[CharNormY]; in ComputeNormMatch()
119 Delta = Feature->Params[CharNormRx] - Proto->Mean[CharNormRx]; in ComputeNormMatch()
196 ParamMatch = (Feature->Params[i] - Mean(Proto, i)) / in PrintNormMatch()
Dnormfeat.cpp49 return (Feature->Params[CharNormLength] * LENGTH_COMPRESSION); in ActualOutlineLength()
109 Feature->Params[CharNormY] = (FXInfo.Ymean - Baseline) * Scale; in ExtractCharNormFeatures()
110 Feature->Params[CharNormLength] = in ExtractCharNormFeatures()
112 Feature->Params[CharNormRx] = FXInfo.Rx * Scale; in ExtractCharNormFeatures()
113 Feature->Params[CharNormRy] = FXInfo.Ry * Scale; in ExtractCharNormFeatures()
Dpicofeat.cpp167 Feature->Params[PicoFeatDir] = Angle; in ConvertSegmentToPicoFeat()
168 Feature->Params[PicoFeatX] = Center.x; in ConvertSegmentToPicoFeat()
169 Feature->Params[PicoFeatY] = Center.y; in ConvertSegmentToPicoFeat()
244 Origin += Feature->Params[PicoFeatX]; in NormalizePicoX()
250 Feature->Params[PicoFeatX] -= Origin; in NormalizePicoX()
Dfloat2int.cpp120 IntFeatures[Fid].X = BucketFor (Feature->Params[PicoFeatX], in ComputeIntFeatures()
122 IntFeatures[Fid].Y = BucketFor (Feature->Params[PicoFeatY], in ComputeIntFeatures()
124 IntFeatures[Fid].Theta = CircBucketFor (Feature->Params[PicoFeatDir], in ComputeIntFeatures()
Docrfeatures.cpp170 if (fscanf (File, "%f", &(Feature->Params[i])) != 1) in ReadFeature()
173 assert (!isnan(Feature->Params[i])); in ReadFeature()
234 assert (!isnan(Feature->Params[i])); in WriteFeature()
236 fprintf (File, " %12g", Feature->Params[i]); in WriteFeature()
Dadaptmatch.cpp869 Proto->Angle = Feature->Params[OutlineFeatDir]; in InitAdaptedClass()
870 Proto->X = Feature->Params[OutlineFeatX]; in InitAdaptedClass()
871 Proto->Y = Feature->Params[OutlineFeatY] - Y_DIM_OFFSET; in InitAdaptedClass()
872 Proto->Length = Feature->Params[OutlineFeatLength]; in InitAdaptedClass()
2174 NormFeature->Params[CharNormY] = (FXInfo.Ymean - Baseline) * Scale; in GetIntCharNormFeatures()
2175 NormFeature->Params[CharNormLength] = in GetIntCharNormFeatures()
2177 NormFeature->Params[CharNormRx] = FXInfo.Rx * Scale; in GetIntCharNormFeatures()
2178 NormFeature->Params[CharNormRy] = FXInfo.Ry * Scale; in GetIntCharNormFeatures()
2328 X1 = F1->Params[PicoFeatX]; in MakeNewTempProtos()
2329 Y1 = F1->Params[PicoFeatY]; in MakeNewTempProtos()
[all …]
Docrfeatures.h48 FLOAT32 Params[1]; /* variable size array - params for feature */ member
/external/tesseract/training/
Dmergenf.cpp93 Feature->Params[PicoFeatDir] = p1->Angle; in CompareProtos()
103 Feature->Params[PicoFeatX] = p1->X + cos (Angle) * Length; in CompareProtos()
104 Feature->Params[PicoFeatY] = p1->Y + sin (Angle) * Length; in CompareProtos()
115 Feature->Params[PicoFeatX] = p1->X - cos (Angle) * Length; in CompareProtos()
116 Feature->Params[PicoFeatY] = p1->Y - sin (Angle) * Length; in CompareProtos()
242 Dangle = Proto->Angle - Feature->Params[PicoFeatDir]; in SubfeatureEvidence()
247 Distance = Proto->A * Feature->Params[PicoFeatX] + in SubfeatureEvidence()
248 Proto->B * Feature->Params[PicoFeatY] + in SubfeatureEvidence()
304 AngleError = fabs (Proto->Angle - Feature->Params[PicoFeatDir]); in DummyFastMatch()
316 return PointInside(&BoundingBox, Feature->Params[PicoFeatX], in DummyFastMatch()
[all …]
Dcntraining.cpp248 f->Params[dim] += UniformRandomNumber(-MINSD, MINSD); in ReadTrainingSamples()
Dcommontraining.cpp451 Sample[j] = round(FeatureSet->Features[i]->Params[j], RoundingAccuracy); in SetUpForClustering()
453 Sample[j] = FeatureSet->Features[i]->Params[j]; in SetUpForClustering()
Dmftraining.cpp441 f->Params[dim] += dim == MFDirection ? in ReadTrainingSamples()