Commit 1582ce072067fe3babd9c27548a3ec46285d8cc3
1 parent
8a86bd56
added band_index() to envi.h
Showing
1 changed file
with
8 additions
and
0 deletions
Show diff stats
envi/envi.h
@@ -541,7 +541,15 @@ public: | @@ -541,7 +541,15 @@ public: | ||
541 | 541 | ||
542 | } | 542 | } |
543 | return false; | 543 | return false; |
544 | + } | ||
545 | + | ||
546 | + bool band_index(void* ptr, unsigned int b){ | ||
547 | + if(header.interleave == envi_header::BSQ){ //if the infile is bsq file | ||
548 | + if(header.data_type ==envi_header::float32) | ||
549 | + return ((bsq<float>*)file)->band_index((float*)ptr, b); | ||
544 | 550 | ||
551 | + } | ||
552 | + return false; | ||
545 | } | 553 | } |
546 | 554 | ||
547 | 555 |