Quantum Phenomena Explorer 7.9.8
Interactive quantum-phenomena Explorer Tutor — source documentation
Loading...
Searching...
No Matches
quantumgaussianblur.h
Go to the documentation of this file.
1/**
2 * @file quantumgaussianblur.h
3 * @brief Declares the quantumgaussianblur visualization component used by QPE.
4 * @ingroup qpe_graphics
5 *
6 * Source: @c graphics/renderer/quantumgaussianblur.h. 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#pragma once
13
14namespace qpe {
15
16// Display-only Gaussian blur kernel helper mirrored by the GPU shader.
17// The shader uses a bilinear-sampling optimized 5-fetch separable kernel.
18/**
19 * @brief Implements the Quantum Gaussian Blur component.
20 *
21 * The class provides one focused service within the QPE architecture and is documented here independently of the experiment-level Help.
22 */
24{
25public:
26 /**
27 * @brief Performs center weight.
28 */
29 static float centerWeight();
30 /**
31 * @brief Performs inner pair weight.
32 */
33 static float innerPairWeight();
34 /**
35 * @brief Performs outer pair weight.
36 */
37 static float outerPairWeight();
38 /**
39 * @brief Performs inner offset.
40 */
41 static float innerOffset();
42 /**
43 * @brief Performs outer offset.
44 */
45 static float outerOffset();
46
47 /**
48 * @brief Returns normalized spread.
49 * @param spread The spread value used by the operation.
50 */
51 static float normalizedSpread(float spread);
52 /**
53 * @brief Performs total weight.
54 */
55 static float totalWeight();
56};
57
58} // namespace qpe
Implements the Quantum Gaussian Blur component.
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.