MCPcopy Create free account
hub / github.com/LuminanceHDR/LuminanceHDR / printTriangular

Function printTriangular

test/FusionAlgorithms/PrintWeights.cpp:69–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69void printTriangular()
70{
71 WeightFunction weights(WEIGHT_TRIANGULAR);
72 vector<float> data(SAMPLES);
73
74 ofstream outputFile("data_triangular.dat");
75 weights_triangle(data.data(), SAMPLES);
76 for (size_t idx = 0; idx < SAMPLES; ++idx)
77 {
78 float w = weights.getWeight(((float)idx)/SAMPLES);
79
80 outputFile << idx << " " << data[idx] << " "
81 << w << " " << abs(data[idx] - w)
82 << "\n";
83 }
84 outputFile.close();
85}
86
87void printGaussian()
88{

Callers 1

mainFunction · 0.85

Calls 4

weights_triangleFunction · 0.85
getWeightMethod · 0.80
dataMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected