Removed decimal places from the median value.
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -479,7 +479,7 @@ void FramePropertiesDock::updateStatistiques()
|
|||||||
labelCountValue->setText( value.setNum( (float)counts, 'f', 0 ) );
|
labelCountValue->setText( value.setNum( (float)counts, 'f', 0 ) );
|
||||||
|
|
||||||
double median = frame->getMedian( channel, min, max );
|
double median = frame->getMedian( channel, min, max );
|
||||||
labelMedianValue->setText( value.setNum( median, 'f', 1 ) );
|
labelMedianValue->setText( value.setNum( median, 'f', 0 ) );
|
||||||
|
|
||||||
double entropy = frame->getEntropy( channel, min, max );
|
double entropy = frame->getEntropy( channel, min, max );
|
||||||
labelEntropyValue->setText( value.setNum( entropy, 'f', 2 ) );
|
labelEntropyValue->setText( value.setNum( entropy, 'f', 2 ) );
|
||||||
|
|||||||
@@ -938,7 +938,7 @@ void HistogramWidget::paintEvent( QPaintEvent* )
|
|||||||
|
|
||||||
tipText += cellBeg + tr( "Median:" ) + cellMid;
|
tipText += cellBeg + tr( "Median:" ) + cellMid;
|
||||||
double median = frame->getMedian( m_channelType, 0, frame->getNumHistogramSegment() - 1 );
|
double median = frame->getMedian( m_channelType, 0, frame->getNumHistogramSegment() - 1 );
|
||||||
tipText += value.setNum( median, 'f', 1 ) + cellEnd;
|
tipText += value.setNum( median, 'f', 0 ) + cellEnd;
|
||||||
|
|
||||||
tipText += cellBeg + tr( "Entropy:" ) + cellMid;
|
tipText += cellBeg + tr( "Entropy:" ) + cellMid;
|
||||||
double entropy = frame->getEntropy( m_channelType, 0, frame->getNumHistogramSegment() - 1 );
|
double entropy = frame->getEntropy( m_channelType, 0, frame->getNumHistogramSegment() - 1 );
|
||||||
|
|||||||
Reference in new issue
Block a user