Definition at line 350 of file BasicGlCamera.cc.
References ACTUAL_NUM_PIXELS, dataText, fData, fmax, fmean, fmedian, fmin, frms, i, str, and unitsText.
Referenced by QCameraWidget::CalculatePixelsColor().
353 float min, max, median;
357 if (finite(
fData[ii]))
359 min = max =
fData[ii];
366 if (ii==ACTUAL_NUM_PIXELS)
372 vector<double> medianVec;
373 medianVec.resize(ACTUAL_NUM_PIXELS);
374 auto it = medianVec.begin();
399 sort(medianVec.begin(), medianVec.begin()+numSamples);
403 rms = sqrt((rms/numSamples) - (mean * mean));
406 auto jt = medianVec.begin();
407 for (
int i=0;i<(numSamples/2)-1;i++)
414 if (numSamples%2==0){
419 str <<
"Min: " << min << endl <<
" Max: " << max <<
" Mean: " << mean <<
" RMS: " << rms <<
" Median: " << median;
std::vector< double > fData
#define ACTUAL_NUM_PIXELS