From a1f66683fd501db58dcb3571306f0d525f2d6f19 Mon Sep 17 00:00:00 2001 From: remi Date: Mon, 30 Sep 2019 17:27:13 +0200 Subject: [PATCH] ENH: add option to enable zero-y intercept --- app/otbHarmonizer.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/otbHarmonizer.cxx b/app/otbHarmonizer.cxx index 1ac4c69..a8b3390 100644 --- a/app/otbHarmonizer.cxx +++ b/app/otbHarmonizer.cxx @@ -445,8 +445,10 @@ private: if (band>0) exp << ";"; exp << "im1b" << (band+1) << "*" << b1; - if (b0 != 0) + if (b0>0) exp << "+" << b0; + else + exp << "" << b0; gain[band] = b1; offset[band] = b0; -- GitLab