67 constexpr std::size_t table_size = 1 << 10;
70 lookupTable_.resize(table_size);
73 constexpr std::int16_t nConstShift = 800;
74 constexpr double nParamCoeff = 4.000000;
75 constexpr double dPlanePixelSize = 0.104200;
76 constexpr double nShiftScale = 10.000000;
77 constexpr double dPlaneDsr = 120.000000;
78 constexpr double dPlaneDcl = 7.500000;
80 for (std::size_t i=0; i<table_size; ++i)
83 double dFixedRefX = (
static_cast<double>(i - nConstShift) / nParamCoeff)-0.375;
84 double dMetric = dFixedRefX * dPlanePixelSize;
85 lookupTable_[i] =
static_cast<float>((nShiftScale * ((dMetric * dPlaneDsr / (dPlaneDcl - dMetric)) + dPlaneDsr) ) / 1000.0f);