From 6b084c1a7e59e1d4c7f692d246964f49ed4c30f9 Mon Sep 17 00:00:00 2001 From: Joao Santos Date: Sat, 12 Dec 2020 13:06:52 +0000 Subject: [PATCH] Fixed minor issue with getEntropy function. --- lib/CalypFrame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CalypFrame.cpp b/lib/CalypFrame.cpp index 4591db3..4024fcb 100644 --- a/lib/CalypFrame.cpp +++ b/lib/CalypFrame.cpp @@ -1145,7 +1145,7 @@ double CalypFrame::getEntropy( unsigned channel, unsigned int start, unsigned in double numValues = getNumPixelsRange( channel, start, end ); double entropy = 0.0; - for( unsigned b = start; b < end; b++ ) + for( unsigned b = start; b <= end; b++ ) { if (d->m_puiHistogram[indexStart + b] == 0) continue;