Commit d1d8ef9149145b6eeb09011f1daa7e7f80ee5c5d
1 parent
70407ea9
added band reading to envi
Showing
1 changed file
with
10 additions
and
0 deletions
Show diff stats
envi/envi.h
... | ... | @@ -463,6 +463,16 @@ public: |
463 | 463 | return true; |
464 | 464 | } |
465 | 465 | |
466 | + bool band(void* ptr, double wavelength){ | |
467 | + | |
468 | + if(header.interleave == envi_header::BSQ){ //if the infile is bsq file | |
469 | + if(header.data_type ==envi_header::float32) | |
470 | + return ((bsq<float>*)file)->band((float*)ptr, wavelength); | |
471 | + | |
472 | + } | |
473 | + | |
474 | + } | |
475 | + | |
466 | 476 | |
467 | 477 | |
468 | 478 | ... | ... |