#include "../envi/envi.h" #include "../envi/binary.h" namespace rts{ template class bsq: public binary { protected: envi header; public: //open a file, given the file and its header's names bool open(std::string filename, std::string headername){ if (header.load(headername)==false){ std::cout<<"ERROR: unable to load head file"<= header.bands){ //make sure the bank number is right std::cout<<"ERROR: page out of range"<= header.samples || y >= header.lines){ //make sure the sample and line number is right std::cout<<"ERROR: sample or line out of range"<