mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-30 17:58:49 +08:00
BUG: Fix image viewer for RGB images
This commit is contained in:
@@ -139,7 +139,7 @@ class ImageViewer(QMainWindow):
|
||||
self._image_plot.set_array(image)
|
||||
|
||||
# Adjust size if new image shape doesn't match the original
|
||||
h, w = image.shape
|
||||
h, w = image.shape[:2]
|
||||
# update data coordinates (otherwise pixel coordinates are off)
|
||||
self._image_plot.set_extent((0, w, h, 0))
|
||||
# update display (otherwise image doesn't fill the canvas)
|
||||
|
||||
Reference in New Issue
Block a user