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

Function gaussian

src/include/image_process_utils/imageproc.hpp:29–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27 }
28
29 inline float gaussian(float x, float sigma) {
30 if (sigma <= 0.0f) return 1.0f;
31 return std::exp(-(x * x) / (2.0f * sigma * sigma));
32 }
33
34 // PyTorch-compatible area pixel compute scale
35 inline float area_pixel_compute_scale(int input_size, int output_size, bool align_corners) {

Callers 2

resize_bicubic_planeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected