MCPcopy Create free account
hub / github.com/creatale/node-dv / NewIntTemplates

Function NewIntTemplates

deps/tesseract/classify/intproto.cpp:723–735  ·  view source on GitHub ↗

* This routine allocates a new set of integer templates * initialized to hold 0 classes. * @return The integer templates created. * @note Globals: none * @note Exceptions: none * @note History: Fri Feb 8 08:38:51 1991, DSJ, Created. */

Source from the content-addressed store, hash-verified

721 * @note History: Fri Feb 8 08:38:51 1991, DSJ, Created.
722 */
723INT_TEMPLATES NewIntTemplates() {
724 INT_TEMPLATES T;
725 int i;
726
727 T = (INT_TEMPLATES) Emalloc (sizeof (INT_TEMPLATES_STRUCT));
728 T->NumClasses = 0;
729 T->NumClassPruners = 0;
730
731 for (i = 0; i < MAX_NUM_CLASSES; i++)
732 ClassForClassId (T, i) = NULL;
733
734 return (T);
735} /* NewIntTemplates */
736
737
738/*---------------------------------------------------------------------------*/

Callers 3

CreateIntTemplatesMethod · 0.85
ReadIntTemplatesMethod · 0.85
NewAdaptedTemplatesMethod · 0.85

Calls 1

EmallocFunction · 0.85

Tested by

no test coverage detected