Commit 83c37875 authored by Laurent Belcour's avatar Laurent Belcour

By default 0 filling of the data in MERL.

parent dfb95e21
......@@ -23,6 +23,7 @@
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <algorithm>
#define BRDF_SAMPLING_RES_THETA_H 90
#define BRDF_SAMPLING_RES_THETA_D 90
......@@ -39,6 +40,7 @@ data_merl::data_merl()
{
const int n = BRDF_SAMPLING_RES_PHI_D/2 * BRDF_SAMPLING_RES_THETA_D * BRDF_SAMPLING_RES_THETA_H;
brdf = (double*) malloc (sizeof(double)*3*n);
std::fill(brdf, brdf + 3*n, 0.0);
// Set the input and output parametrization
_in_param = params::RUSIN_TH_TD_PD;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment