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

Function WriteFeatureSet

deps/tesseract/classify/ocrfeatures.cpp:211–219  ·  view source on GitHub ↗

* Write a textual representation of FeatureSet to File. * This representation is an integer specifying the number of * features in the set, followed by a newline, followed by * text representations for each feature in the set. * @param FeatureSet feature set to write to File * @param str string to write Feature to * @return none * @note History: Wed May 23 10:06:03 1990, DSJ, Created. */

Source from the content-addressed store, hash-verified

209 * @note History: Wed May 23 10:06:03 1990, DSJ, Created.
210 */
211void WriteFeatureSet(FEATURE_SET FeatureSet, STRING* str) {
212 if (FeatureSet) {
213 str->add_str_int("", FeatureSet->NumFeatures);
214 *str += "\n";
215 for (int i = 0; i < FeatureSet->NumFeatures; i++) {
216 WriteFeature(FeatureSet->Features[i], str);
217 }
218 }
219} /* WriteFeatureSet */
220
221/**
222 * Write a textual representation of FeatureDesc to File

Callers 1

WriteCharDescriptionFunction · 0.85

Calls 2

WriteFeatureFunction · 0.85
add_str_intMethod · 0.80

Tested by

no test coverage detected