MCPcopy Create free account
hub / github.com/FastFlowLM/FastFlowLM / clamp

Function clamp

src/include/image_process_utils/imageproc.hpp:25–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23 }
24
25 inline int clamp(int x, int lo, int hi) {
26 return std::max(lo, std::min(x, hi));
27 }
28
29 inline float gaussian(float x, float sigma) {
30 if (sigma <= 0.0f) return 1.0f;

Calls

no outgoing calls

Tested by

no test coverage detected