Commit e6d6e9947844ef57b45da2260590fc7cd508d79f
1 parent
cc09e435
fixed cropping bug for BIP files
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
stim/envi/bip.h
@@ -1477,7 +1477,7 @@ public: | @@ -1477,7 +1477,7 @@ public: | ||
1477 | unsigned long long jump_sample = ( (Z() - b1) + b0 ) * sizeof(T); | 1477 | unsigned long long jump_sample = ( (Z() - b1) + b0 ) * sizeof(T); |
1478 | 1478 | ||
1479 | //distance between sample spectra in adjacent lines | 1479 | //distance between sample spectra in adjacent lines |
1480 | - unsigned long long jump_line = (X() - x1) * Z() * sizeof(T); | 1480 | + unsigned long long jump_line = ( X() - x1 + x0 ) * Z() * sizeof(T); |
1481 | 1481 | ||
1482 | 1482 | ||
1483 | //unsigned long long sp = y0 * X() + x0; //start pixel | 1483 | //unsigned long long sp = y0 * X() + x0; //start pixel |