Commit 78578186e662347504ac50e8fa136fe3e7c0310e
1 parent
37e61850
fixed a bug in the progress calculation of BSQ sifting
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
stim/envi/bsq.h
... | ... | @@ -996,7 +996,7 @@ public: |
996 | 996 | matrix[i*Z() + b] = band_image[xy]; //copy it to the appropriate point in the values[] array |
997 | 997 | i++; |
998 | 998 | } |
999 | - if(PROGRESS) progress = (double)(xy+1) / (double)XY * 100; | |
999 | + if(PROGRESS) progress = (double)(b * XY + xy+1) / (double)(XY * Z()) * 100; | |
1000 | 1000 | } |
1001 | 1001 | } |
1002 | 1002 | ... | ... |