diff --git a/envi/envi.h b/envi/envi.h index 4836e94..8dc7977 100644 --- a/envi/envi.h +++ b/envi/envi.h @@ -541,7 +541,15 @@ public: } return false; + } + + bool band_index(void* ptr, unsigned int b){ + if(header.interleave == envi_header::BSQ){ //if the infile is bsq file + if(header.data_type ==envi_header::float32) + return ((bsq*)file)->band_index((float*)ptr, b); + } + return false; } -- libgit2 0.21.4