Definition at line 339 of file QCameraWidget.cc.
References ACTUAL_NUM_PIXELS, BasicGlCamera::bb, CalculatePatchColor(), color(), BasicGlCamera::fData, fEnable, BasicGlCamera::fMax, BasicGlCamera::fMin, BasicGlCamera::fScaleLimit, BasicGlCamera::gg, i, BasicGlCamera::logScale, BasicGlCamera::pixelColorUpToDate, BasicGlCamera::pixelsColor, BasicGlCamera::rr, BasicGlCamera::ss, BasicGlCamera::tooHighValueCoulour, BasicGlCamera::tooLowValueCoulour, and BasicGlCamera::UpdateText().
Referenced by drawCamera(), and QCameraWidget().
341 double dmin =
fData[0];
342 double dmax =
fData[0];
345 if (finite(
fData[ii]))
347 dmin = dmax =
fData[ii];
355 if (!finite(
fData[
i]))
continue;
375 if (!finite(
fData[i]))
397 color = float((
fData[i]-dmin)/(dmax-dmin));
402 color = log10(color);
406 while (
ss[index] < color && index < 4)
409 if (index < 0) index = 0;
410 float weight0 = (color-
ss[index]) / (
ss[index+1]-
ss[index]);
411 if (weight0 > 1.0f) weight0 = 1.0f;
412 if (weight0 < 0.0f) weight0 = 0.0f;
413 float weight1 = 1.0f-weight0;
std::vector< double > fData
GLfloat tooLowValueCoulour[3]
GLfloat pixelsColor[NPIX][3]
virtual void UpdateText()
#define ACTUAL_NUM_PIXELS
GLfloat tooHighValueCoulour[3]