Commit 92e4cf0516a4b5f793ba731ba8dfb6c0b8202e0f

Authored by heziqi
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 274 for(unsigned i=0; i < X; i++)
275 275 {
276 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 280 }//loop for YZ line end
... ...
envi/bip.h
... ... @@ -355,7 +355,7 @@ public:
355 355 for(unsigned i=0; i < X; i++)
356 356 {
357 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 361 }//loop for YZ line end
... ...
envi/bsq.h
1 1 #include "../envi/envi.h"
2 2 #include "../envi/binary.h"
3   -#include "../envi/bil.h"
4 3 #include <cstring>
5 4 #include <utility>
6 5  
... ... @@ -196,7 +195,7 @@ public:
196 195 //perform the baseline correction
197 196 for(unsigned i=0; i < XY; i++){
198 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 201 target.write(reinterpret_cast<const char*>(c), S); //write the corrected data into destination
... ...