From 8b42b4f2520bf90fa48d34eae92216c60721ec76 Mon Sep 17 00:00:00 2001 From: hvanruys Date: Wed, 24 Oct 2018 13:12:00 +0200 Subject: [PATCH] Bug in HRV routine. --- core/main.cpp | 2 +- core/segmentlistgeostationary.cpp | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/core/main.cpp b/core/main.cpp index fd2191c..236bd17 100644 --- a/core/main.cpp +++ b/core/main.cpp @@ -12,7 +12,7 @@ #include -#define APPVERSION "1.4.0" +#define APPVERSION "1.4.2" using namespace std; diff --git a/core/segmentlistgeostationary.cpp b/core/segmentlistgeostationary.cpp index cdc737a..2d7b5bd 100644 --- a/core/segmentlistgeostationary.cpp +++ b/core/segmentlistgeostationary.cpp @@ -2350,10 +2350,12 @@ void SegmentListGeostationary::ComposeHRV() - - imageptrs->CLAHE(pixelsRed, 3712, 3712, 0, 1023, 16, 16, 256, 4); - imageptrs->CLAHE(pixelsGreen, 3712, 3712, 0, 1023, 16, 16, 256, 4); - imageptrs->CLAHE(pixelsBlue, 3712, 3712, 0, 1023, 16, 16, 256, 4); + if(kindofimage == "HRV Color") + { + imageptrs->CLAHE(pixelsRed, 3712, 3712, 0, 1023, 16, 16, 256, 4); + imageptrs->CLAHE(pixelsGreen, 3712, 3712, 0, 1023, 16, 16, 256, 4); + imageptrs->CLAHE(pixelsBlue, 3712, 3712, 0, 1023, 16, 16, 256, 4); + } if(opts.geosatellites.at(geoindex).rss) imageptrs->CLAHE(pixelsHRV, 5568, 5*464, 0, 1023, 16, 16, 256, 4);