Coder Social home page Coder Social logo

sameera2004 / image_inspector Goto Github PK

View Code? Open in Web Editor NEW

This project forked from blink1073/image_inspector

0.0 1.0 0.0 416 KB

Brings photo editing software-style selection tools to Matplotlib, plus an ROI inspector tool

License: MIT License

Python 100.00%

image_inspector's Introduction

Image Inspector

Brings GIMP-like selection tools to Matplotlib, plus an ROI inspector tool

Supports: Rectangle, Ellipse, Free Lasso and Polygon Lasso, Line and Point Modes

Rectangle Mode (CTRL+R)

  • Left click and drag to drag a Rectangle
  • While dragging:
    • Hold CTRL to move center to original position
    • Hold SHIFT to draw a Square

Ellipse Mode (CTRL+E)

  • Left click and drag to drag an Ellipse
  • While dragging:
    • Hold CTRL to move center to original position
    • Hold SHIFT to draw a Cirlce

Lasso Mode (CTRL+L)

  • Left click and drag to free hand draw
  • OR Left click and release to start a polygon segment Then click and release to draw a new point
  • Double click at any time to close or Click on the start point indicator to close

Line Mode (CTRL+N)

  • Left click and drag to draw a line

Point Mode (CTRL+P)

  • Left click to draw a point

Advanced Operations

  • Move a Rectangle, Ellipse, or Lasso:
    Hold SPACE and Left click within the shape to drag
  • Build complex shapes
    • Hold SHIFT and create a new shape for a UNION
    • Hold CTRL and create a new shape for an INTERSECTION
    • Hold SHIFT+CTRL and create a new shape for a SUBTRACTION
    • You can switch between Rectangle, Ellipse, and Lasso at any time

Demo

For a demo, run:

$ python roi_inspector.py

If you have enaml >= 0.8, you can run:

$ enaml-run roi_inspector_view.enaml

image_inspector's People

Contributors

blink1073 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.