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

Function ReadTempConfig

deps/tesseract/classify/adaptive.cpp:429–443  ·  view source on GitHub ↗

---------------------------------------------------------------------------*/ * Read a temporary configuration description from File * and return a ptr to it. * * @param File open file to read temporary config from * @return Ptr to new temporary configuration description. * * @note Globals: none * @note Exceptions: none * @note History: Tue Mar 19 14:29:59 1991, DSJ, Created. */

Source from the content-addressed store, hash-verified

427 * @note History: Tue Mar 19 14:29:59 1991, DSJ, Created.
428 */
429TEMP_CONFIG ReadTempConfig(FILE *File) {
430 TEMP_CONFIG Config;
431
432 Config =
433 (TEMP_CONFIG) alloc_struct (sizeof (TEMP_CONFIG_STRUCT),
434 "TEMP_CONFIG_STRUCT");
435 fread ((char *) Config, sizeof (TEMP_CONFIG_STRUCT), 1, File);
436
437 Config->Protos = NewBitVector (Config->ProtoVectorSize * BITSINLONG);
438 fread ((char *) Config->Protos, sizeof (uinT32),
439 Config->ProtoVectorSize, File);
440
441 return (Config);
442
443} /* ReadTempConfig */
444
445
446/*---------------------------------------------------------------------------*/

Callers 1

ReadAdaptedClassFunction · 0.85

Calls 2

alloc_structFunction · 0.85
NewBitVectorFunction · 0.85

Tested by

no test coverage detected