Commit 0c748c8178801005e7326df6b19ee22b05199b83
1 parent
aef20000
Ziqi added save header file in baseline method
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
envi/bsq.h
... | ... | @@ -117,6 +117,7 @@ public: |
117 | 117 | unsigned N = wls.size(); //get the number of baseline points |
118 | 118 | |
119 | 119 | std::ofstream target(outname.c_str(), std::ios::binary); //open the target binary file |
120 | + std::string headername = outname + ".hdr"; //the header file name | |
120 | 121 | |
121 | 122 | //simplify image resolution |
122 | 123 | unsigned int B = header.bands; //calculate the number of bands |
... | ... | @@ -202,6 +203,8 @@ public: |
202 | 203 | target.write(reinterpret_cast<const char*>(c), S); //write the corrected data into destination |
203 | 204 | |
204 | 205 | } |
206 | + | |
207 | + header.save(headername); //save the new header file | |
205 | 208 | |
206 | 209 | free(a); |
207 | 210 | free(b); | ... | ... |