Home
last modified time | relevance | path

Searched refs:Proto (Results 1 – 19 of 19) sorted by relevance

/external/tesseract/classify/
Dclusttool.cpp118 PROTOTYPE *Proto; in ReadPrototype() local
123 Proto = (PROTOTYPE *) Emalloc (sizeof (PROTOTYPE)); in ReadPrototype()
124 Proto->Cluster = NULL; in ReadPrototype()
126 Proto->Significant = TRUE; in ReadPrototype()
128 Proto->Significant = FALSE; in ReadPrototype()
130 Proto->Style = ReadProtoStyle (File); in ReadPrototype()
134 Proto->NumSamples = SampleCount; in ReadPrototype()
136 Proto->Mean = ReadNFloats (File, N, NULL); in ReadPrototype()
137 if (Proto->Mean == NULL) in ReadPrototype()
140 switch (Proto->Style) { in ReadPrototype()
[all …]
Dcluster.cpp305 void MakeDimRandom(uinT16 i, PROTOTYPE *Proto, PARAM_DESC *ParamDesc);
307 void MakeDimUniform(uinT16 i, PROTOTYPE *Proto, STATISTICS *Statistics);
655 FLOAT32 Mean(PROTOTYPE *Proto, uinT16 Dimension) { in Mean() argument
656 return (Proto->Mean[Dimension]); in Mean()
670 FLOAT32 StandardDeviation(PROTOTYPE *Proto, uinT16 Dimension) { in StandardDeviation() argument
671 switch (Proto->Style) { in StandardDeviation()
673 return ((FLOAT32) sqrt ((double) Proto->Variance.Spherical)); in StandardDeviation()
676 sqrt ((double) Proto->Variance.Elliptical[Dimension])); in StandardDeviation()
678 switch (Proto->Distrib[Dimension]) { in StandardDeviation()
681 sqrt ((double) Proto->Variance.Elliptical[Dimension])); in StandardDeviation()
[all …]
Dprotos.cpp187 void FillABC(PROTO Proto) { in FillABC() argument
190 Slope = tan (Proto->Angle * 2.0 * PI); in FillABC()
191 Intercept = Proto->Y - Slope * Proto->X; in FillABC()
193 Proto->A = Slope * Normalizer; in FillABC()
194 Proto->B = -Normalizer; in FillABC()
195 Proto->C = Intercept * Normalizer; in FillABC()
358 register PROTO Proto; in ReadProtos() local
367 Proto = ProtoIn (Class, Pid); in ReadProtos()
369 &Proto->X, in ReadProtos()
370 &Proto->Y, in ReadProtos()
[all …]
Dprotos.h130 #define PrintProto(Proto) \ argument
132 Proto->X, \
133 Proto->Y, \
134 Proto->Length, \
135 Proto->Angle)) \
145 #define PrintProtoLine(Proto) \ argument
147 Proto->A, \
148 Proto->B, \
149 Proto->C)) \
164 void FillABC(PROTO Proto);
Dnormmatch.cpp53 PROTOTYPE *Proto,
91 PROTOTYPE *Proto; in ComputeNormMatch() local
116 Proto = (PROTOTYPE *) first_node (Protos); in ComputeNormMatch()
117 Delta = Feature->Params[CharNormY] - Proto->Mean[CharNormY]; in ComputeNormMatch()
118 Match = Delta * Delta * Proto->Weight.Elliptical[CharNormY]; in ComputeNormMatch()
119 Delta = Feature->Params[CharNormRx] - Proto->Mean[CharNormRx]; in ComputeNormMatch()
120 Match += Delta * Delta * Proto->Weight.Elliptical[CharNormRx]; in ComputeNormMatch()
127 WriteNFloats (stdout, NormProtos->NumParams, Proto->Mean); in ComputeNormMatch()
130 Proto->Variance.Elliptical); in ComputeNormMatch()
132 PrintNormMatch (stdout, NormProtos->NumParams, Proto, Feature); in ComputeNormMatch()
[all …]
Dintproto.cpp156 PROTO Proto,
281 INT_PROTO Proto; in AddIntProto() local
306 Proto = ProtoForProtoId (Class, Index); in AddIntProto()
307 for (Word = Proto->Configs; in AddIntProto()
308 Word < Proto->Configs + WERDS_PER_CONFIG_VEC; *Word++ = 0); in AddIntProto()
316 void AddProtoToClassPruner (PROTO Proto, CLASS_ID ClassId, in AddProtoToClassPruner() argument
349 InitTableFiller(EndPad, SidePad, AnglePad, Proto, &TableFiller); in AddProtoToClassPruner()
360 void AddProtoToProtoPruner(PROTO Proto, int ProtoId, INT_CLASS Class) { in AddProtoToProtoPruner() argument
387 Angle = Proto->Angle; in AddProtoToProtoPruner()
396 Length = Proto->Length; in AddProtoToProtoPruner()
[all …]
Dadaptmatch.cpp837 PROTO Proto; in InitAdaptedClass() local
864 Proto = &(TempProto->Proto); in InitAdaptedClass()
869 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()
873 FillABC(Proto); in InitAdaptedClass()
878 ConvertProto(Proto, Pid, IClass); in InitAdaptedClass()
879 AddProtoToProtoPruner(Proto, Pid, IClass); in InitAdaptedClass()
2318 PROTO Proto; in MakeNewTempProtos() local
[all …]
Dintproto.h228 void AddProtoToClassPruner(PROTO Proto,
232 void AddProtoToProtoPruner(PROTO Proto, int ProtoId, INT_CLASS Class);
242 void ConvertProto(PROTO Proto, int ProtoId, INT_CLASS Class);
Dcluster.h148 FLOAT32 Mean(PROTOTYPE *Proto, uinT16 Dimension);
150 FLOAT32 StandardDeviation(PROTOTYPE *Proto, uinT16 Dimension);
Dintmatcher.cpp925 INT_PROTO Proto; in IMUpdateTablesForFeature() local
972 Proto = &(ProtoSet->Protos[ProtoNum + proto_offset]); in IMUpdateTablesForFeature()
973 ConfigWord = Proto->Configs[0]; in IMUpdateTablesForFeature()
974 A3 = (((Proto->A * (Feature->X - 128)) << 1) in IMUpdateTablesForFeature()
975 - (Proto->B * (Feature->Y - 128)) + (Proto->C << 9)); in IMUpdateTablesForFeature()
977 (((inT8) (Feature->Theta - Proto->Angle)) * in IMUpdateTablesForFeature()
Dclusttool.h41 void WritePrototype(FILE *File, uinT16 N, PROTOTYPE *Proto);
Dadaptive.h32 PROTO_STRUCT Proto; member
/external/tesseract/training/
Dmergenf.cpp187 PROTO Proto; in FindClosestExistingProto() local
197 Proto = ProtoIn (Class, Pid); in FindClosestExistingProto()
198 ComputeMergedProto (Proto, &NewProto, in FindClosestExistingProto()
200 OldMatch = CompareProtos (Proto, &MergedProto); in FindClosestExistingProto()
238 FLOAT32 SubfeatureEvidence(FEATURE Feature, PROTO Proto) { in SubfeatureEvidence() argument
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()
249 Proto->C; in SubfeatureEvidence()
282 PROTO Proto) in DummyFastMatch() argument
[all …]
Dcommontraining.cpp565 PROTOTYPE* Proto; in RemoveInsignificantProtos() local
572 Proto = (PROTOTYPE *) first_node (pProtoList); in RemoveInsignificantProtos()
573 if ((Proto->Significant && KeepSigProtos) || in RemoveInsignificantProtos()
574 (!Proto->Significant && KeepInsigProtos)) in RemoveInsignificantProtos()
579 NewProto->Significant = Proto->Significant; in RemoveInsignificantProtos()
580 NewProto->Style = Proto->Style; in RemoveInsignificantProtos()
581 NewProto->NumSamples = Proto->NumSamples; in RemoveInsignificantProtos()
586 NewProto->Mean[i] = Proto->Mean[i]; in RemoveInsignificantProtos()
587 if (Proto->Variance.Elliptical != NULL) in RemoveInsignificantProtos()
591 NewProto->Variance.Elliptical[i] = Proto->Variance.Elliptical[i]; in RemoveInsignificantProtos()
[all …]
Dmftraining.cpp204 PROTO Proto; in main() local
334 Proto = ProtoIn (MergeClass->Class, Pid); in main()
335 MakeNewFromOld (Proto, Prototype); in main()
579 PROTO Proto; in WriteProtos() local
585 Proto = ProtoIn(MergeClass->Class,i); in WriteProtos()
586 fprintf(File, "\t%8.4f %8.4f %8.4f %8.4f ", Proto->X, Proto->Y, in WriteProtos()
587 Proto->Length, Proto->Angle); in WriteProtos()
588 Values[0] = Proto->X; in WriteProtos()
589 Values[1] = Proto->Y; in WriteProtos()
590 Values[2] = Proto->Angle; in WriteProtos()
Dcntraining.cpp324 PROTOTYPE *Proto; in WriteProtos() local
329 Proto = (PROTOTYPE *) first_node ( ProtoList ); in WriteProtos()
330 if (( Proto->Significant && WriteSigProtos ) || in WriteProtos()
331 ( ! Proto->Significant && WriteInsigProtos ) ) in WriteProtos()
332 WritePrototype( File, N, Proto ); in WriteProtos()
Dmergenf.h79 PROTO Proto);
86 PROTO Proto);
89 PROTO Proto,
/external/webkit/WebKitTools/BuildSlaveSupport/
Drun-performance-tests61 Proto => 'tcp',
/external/webkit/WebCore/
DChangeLog-2007-10-1463669 …* bindings/scripts/CodeGeneratorJS.pm: Append "Proto" to interface name for the prototype's ClassI…
63724 Changed Proto to Prototype, and ProtoFunc to PrototypeFunction.