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

Function clamp_long

libop/image/ImageSearchService.cpp:80–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80long clamp_long(long value, long low, long high) {
81 if (value < low)
82 return low;
83 if (value > high)
84 return high;
85 return value;
86}
87
88std::shared_ptr<PicMatchTemplate> make_pic_match(std::shared_ptr<Image> image) {
89 if (!image || image->empty())

Callers 1

SetBinaryPreprocessMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected