MCPcopy Create free account
hub / github.com/WallBreaker2/op / SetBinaryPreprocess

Method SetBinaryPreprocess

libop/image/ImageSearchService.cpp:444–451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

442}
443
444long ImageSearchService::SetBinaryPreprocess(long mode, long isolated_threshold, long min_component_area,
445 long bridge_gap) {
446 _binary_preprocess_mode = clamp_preprocess_mode(mode);
447 _binary_isolated_threshold = clamp_long(isolated_threshold, 0, 8);
448 _binary_min_component_area = min_component_area <= 0 ? 2 : clamp_long(min_component_area, 1, 4096);
449 _binary_bridge_gap = bridge_gap > 0 ? 1 : 0;
450 return 1;
451}
452
453long ImageSearchService::GetBinaryPreprocess(long &mode, long &isolated_threshold, long &min_component_area,
454 long &bridge_gap) const {

Callers

nothing calls this directly

Calls 2

clamp_preprocess_modeFunction · 0.85
clamp_longFunction · 0.85

Tested by

no test coverage detected