image_editor.py 422 B

1234567891011121314151617
  1. # !/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. # A simple image editor that allows the user to apply various filters
  4. import sys
  5. from vedo import dataurl
  6. from vedo.applications import ImageEditor
  7. if len(sys.argv) > 1:
  8. filename = sys.argv[1]
  9. else: # use a default image
  10. filename = dataurl + "e3_EGFP.jpg"
  11. print(f"Using default image: {filename}")
  12. editor = ImageEditor(filename)
  13. editor.start()
  14. editor.close()