We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 56e1c4f + 65ecfb5 commit e9809c4Copy full SHA for e9809c4
pixelstats.cpp
@@ -493,11 +493,8 @@ void pixelStats::updateHisto(){
493
ui->histo->detachItems( QwtPlotItem::Rtti_PlotCurve);
494
ui->histo->detachItems( QwtPlotItem::Rtti_PlotMarker);
495
ui->histo->detachItems(QwtPlotItem::Rtti_PlotItem);
496
- // Quantize the hue to 30 levels
497
- // and the saturation to 32 levels
498
- int hbins = 1000, sbins = 32;
499
- int histSize[] = {hbins, sbins};
500
- // hue varies from 0 to 179, see cvtColor
+ int hbins = 1000; // make histogram with 1000 bins
+ int histSize[] = {hbins};
501
502
503
cv::Mat hist;
@@ -510,7 +507,7 @@ void pixelStats::updateHisto(){
510
507
511
508
float hranges[] = { (float)m_wf->min, (float)m_wf->max};
512
509
const float* ranges[] = { hranges };
513
- int channels[] = {0, 1};
+ int channels[] = { 0 };
514
cv::calcHist( &values, 1, channels, m_wf->workMask, // do not use mask
515
hist, 1, histSize, ranges,
516
true, // the histogram is uniform
0 commit comments