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

Function InitIntMatchWindowIfReqd

deps/tesseract/classify/intproto.cpp:1879–1894  ·  view source on GitHub ↗

* Initializes the int matcher window if it is not already * initialized. */

Source from the content-addressed store, hash-verified

1877 * initialized.
1878 */
1879void InitIntMatchWindowIfReqd() {
1880 if (IntMatchWindow == NULL) {
1881 IntMatchWindow = CreateFeatureSpaceWindow("IntMatchWindow", 50, 200);
1882 SVMenuNode* popup_menu = new SVMenuNode();
1883
1884 popup_menu->AddChild("Debug Adapted classes", IDA_ADAPTIVE,
1885 "x", "Class to debug");
1886 popup_menu->AddChild("Debug Static classes", IDA_STATIC,
1887 "x", "Class to debug");
1888 popup_menu->AddChild("Debug Both", IDA_BOTH,
1889 "x", "Class to debug");
1890 popup_menu->AddChild("Debug Shape Index", IDA_SHAPE_INDEX,
1891 "0", "Index to debug");
1892 popup_menu->BuildMenu(IntMatchWindow, false);
1893 }
1894}
1895
1896/**
1897 * Initializes the proto display window if it is not already

Callers 3

DisplayProtoDebugInfoMethod · 0.85
ShowMatchDisplayMethod · 0.85

Calls 3

CreateFeatureSpaceWindowFunction · 0.85
AddChildMethod · 0.80
BuildMenuMethod · 0.80

Tested by

no test coverage detected