Sum all channels histograms

This commit is contained in:
2023-11-14 12:04:55 +01:00
parent d462ece7c9
commit 4a9d720343
3 changed files with 6 additions and 5 deletions
+1 -2
View File
@@ -13,7 +13,7 @@ void Histogram::imageLoaded(Image *img)
{
if(img && img->rawImage())
{
m_histogram = img->rawImage()->imageStats().m_histogram[0];
m_histogram = img->rawImage()->imageStats().m_histogram;
m_points.clear();
update();
}
@@ -29,7 +29,6 @@ void Histogram::paintEvent(QPaintEvent *)
if(m_histogram.size())
{
if(m_points.size() != w)
{
m_points.clear();