mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-29 07:58:39 +08:00
14 lines
269 B
Python
14 lines
269 B
Python
"""scikits.image viewer"""
|
|
def main():
|
|
import scikits.image.io as io
|
|
import sys
|
|
|
|
if len(sys.argv) != 2:
|
|
print "Usage: scivi <image-file>"
|
|
sys.exit(-1)
|
|
|
|
io.use_plugin('qt')
|
|
io.imshow(io.imread(sys.argv[1]), fancy=True)
|
|
io.show()
|
|
|