Add image viewer script.

This commit is contained in:
Stefan van der Walt
2009-11-08 00:08:34 +02:00
parent 3c3fa01336
commit 992d9df37e
3 changed files with 18 additions and 0 deletions
View File
+13
View File
@@ -0,0 +1,13 @@
"""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()
+5
View File
@@ -78,4 +78,9 @@ if __name__ == "__main__":
packages=setuptools.find_packages(),
include_package_data=True,
zip_safe=False, # the package can run out of an .egg file
entry_points={
'console_scripts': [
'scivi = scikits.image.scripts.scivi:main']
},
)