3 #include "HeatmapShapes.h"
8 #include "VectorMath.h"
18 namespace HeatmapImageRenderer
20 void WriteToLuminanceTexture(
21 const HeatmapImage& heatmapImage,
25 float floatEncodeScale,
26 const Helpers::GLHelpers::TextureInfo& textureInfo
30 HeatmapImage& heatmapImage,
31 const std::vector<Eegeo::Space::WeightedLatLongAltitude>& data,
32 const double normativeValue,
33 const dv3& originEcef,
34 const m44& worldToTextureTransform
37 std::vector<float> BuildGaussianKernel(
float sigma);
40 const HeatmapImage& input,
41 const std::vector<float>& gaussianKernel,
42 HeatmapImage& intermediate,
46 void ApproximateGaussianBlur(
47 const HeatmapImage& input,
49 HeatmapImage& intermediate,
53 std::vector<int> BuildBoxFilterRadiiForGaussianApproximation(
55 const int boxFilterCount
58 void BoxBlurHorizontalTranspose(
59 const HeatmapImage& input,
65 const HeatmapImage& input,
70 void DrawHeatmapTexture(
71 const HeatmapImage& pointsImage,
72 HeatmapImage& blurIntermediate,
73 HeatmapImage& blurOutput,
74 const float radiusPixels,
75 const float heatmapGain,
78 const bool useBoxFilterGaussianApproximation,
79 const float floatEncodeScale,
80 const Helpers::GLHelpers::TextureInfo& textureInfo
83 void DrawTestBandsHeatmapTexture(
86 const float floatEncodeScale,
87 const Helpers::GLHelpers::TextureInfo& textureInfo
90 void DrawTestBands(
const double rangeMin,
const double rangeMax, HeatmapImage& image);