spectralpython / spectral

Python module for hyperspectral image processing
MIT License
573 stars 139 forks source link

Pixel row/col is not displayed in imshow window when pixel row is greater than image width #1

Closed tboggs closed 10 years ago

tboggs commented 10 years ago

This is a bug in ImageView.format_coord. This line

if x < -0.5 or x > ncols - 0.5 or y < -0.5 or y > ncols - 0.5:

should be

if x < -0.5 or x > ncols - 0.5 or y < -0.5 or y > nrows - 0.5: