Commit 92e4cf0516a4b5f793ba731ba8dfb6c0b8202e0f
1 parent
cac62fd3
include file fixed
Showing
3 changed files
with
3 additions
and
4 deletions
Show diff stats
envi/bil.h
@@ -274,7 +274,7 @@ public: | @@ -274,7 +274,7 @@ public: | ||
274 | for(unsigned i=0; i < X; i++) | 274 | for(unsigned i=0; i < X; i++) |
275 | { | 275 | { |
276 | double r = (double) (ci - ai) / (double) (bi - ai); | 276 | double r = (double) (ci - ai) / (double) (bi - ai); |
277 | - c[i + jump] =(float) ( c[i + jump] - (b[i] - a[i]) * r - a[i] ); | 277 | + c[i + jump] =(T) ( c[i + jump] - (b[i] - a[i]) * r - a[i] ); |
278 | } | 278 | } |
279 | 279 | ||
280 | }//loop for YZ line end | 280 | }//loop for YZ line end |
envi/bip.h
@@ -355,7 +355,7 @@ public: | @@ -355,7 +355,7 @@ public: | ||
355 | for(unsigned i=0; i < X; i++) | 355 | for(unsigned i=0; i < X; i++) |
356 | { | 356 | { |
357 | double r = (double) (ci - ai) / (double) (bi - ai); | 357 | double r = (double) (ci - ai) / (double) (bi - ai); |
358 | - c[i * B + cii] =(float) ( c[i * B + cii] - (b[i] - a[i]) * r - a[i] ); | 358 | + c[i * B + cii] =(T) ( c[i * B + cii] - (b[i] - a[i]) * r - a[i] ); |
359 | } | 359 | } |
360 | 360 | ||
361 | }//loop for YZ line end | 361 | }//loop for YZ line end |
envi/bsq.h
1 | #include "../envi/envi.h" | 1 | #include "../envi/envi.h" |
2 | #include "../envi/binary.h" | 2 | #include "../envi/binary.h" |
3 | -#include "../envi/bil.h" | ||
4 | #include <cstring> | 3 | #include <cstring> |
5 | #include <utility> | 4 | #include <utility> |
6 | 5 | ||
@@ -196,7 +195,7 @@ public: | @@ -196,7 +195,7 @@ public: | ||
196 | //perform the baseline correction | 195 | //perform the baseline correction |
197 | for(unsigned i=0; i < XY; i++){ | 196 | for(unsigned i=0; i < XY; i++){ |
198 | double r = (double) (ci - ai) / (double) (bi - ai); | 197 | double r = (double) (ci - ai) / (double) (bi - ai); |
199 | - c[i] =(float) ( c[i] - (b[i] - a[i]) * r - a[i] ); | 198 | + c[i] =(T) ( c[i] - (b[i] - a[i]) * r - a[i] ); |
200 | } | 199 | } |
201 | 200 | ||
202 | target.write(reinterpret_cast<const char*>(c), S); //write the corrected data into destination | 201 | target.write(reinterpret_cast<const char*>(c), S); //write the corrected data into destination |