Quantum Phenomena Explorer 7.9.8
Interactive quantum-phenomena Explorer Tutor — source documentation
Loading...
Searching...
No Matches
quantumgaussianblur.cpp
Go to the documentation of this file.
1/**
2 * @file quantumgaussianblur.cpp
3 * @brief Implements the quantumgaussianblur visualization component used by QPE.
4 * @ingroup qpe_graphics
5 *
6 * Source: @c graphics/renderer/quantumgaussianblur.cpp. This file is part of Quantum Phenomena Explorer (QPE),
7 * maintained by Officina Turini. See LICENSE_IT.txt / LICENSE.txt for the
8 * QPE freeware source-available terms and THIRD_PARTY_NOTICES.txt for
9 * third-party components.
10 */
11
12#include "quantumgaussianblur.h"
13
14#include <algorithm>
15
16namespace qpe {
17
19{
20 return 0.227027f;
21}
22
24{
25 return 0.316216f;
26}
27
29{
30 return 0.070270f;
31}
32
34{
35 return 1.384615f;
36}
37
39{
40 return 3.230769f;
41}
42
44{
45 return std::max(0.25f, std::min(8.0f, spread));
46}
47
52
53} // namespace qpe
static float normalizedSpread(float spread)
Returns normalized spread.
static float outerOffset()
Performs outer offset.
static float centerWeight()
Performs center weight.
static float totalWeight()
Performs total weight.
static float innerOffset()
Performs inner offset.
static float innerPairWeight()
Performs inner pair weight.
static float outerPairWeight()
Performs outer pair weight.
Declares the quantumgaussianblur visualization component used by QPE.