Image Processing, Select Area with Mouse

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nebulism
    New Member
    • Jun 2007
    • 31

    #1

    Image Processing, Select Area with Mouse

    Hey everyone,

    My project is nearing completion and I have one last segment to work upon. I have imported images at a certain resolution say 512x512. I essentially want to drag a box for region of interest selection with the mouse for each imported slide. Does anyone know of a past precedent that I can look to for help for this task (most specifically other modules other than PIL to use)?

    The most important parts would be storing the area of selection and it's location along with using a mouse to accomplish the goal.

    Thanks,
    JP

    <edit: using Tkinter>
    Last edited by bartonc; Jun 18 '07, 04:31 AM. Reason: GUI toolkit reminder
  • bartonc
    Recognized Expert Expert
    • Sep 2006
    • 6478

    #2
    Originally posted by Nebulism
    Hey everyone,

    My project is nearing completion and I have one last segment to work upon. I have imported images at a certain resolution say 512x512. I essentially want to drag a box for region of interest selection with the mouse for each imported slide. Does anyone know of a past precedent that I can look to for help for this task (most specifically other modules other than PIL to use)?

    The most important parts would be storing the area of selection and it's location along with using a mouse to accomplish the goal.

    Thanks,
    JP

    <edit: using Tkinter>
    So, it seems to me that you'll need to "view" an image as a 2D array of values, then select a subset of that array based on mouse coords. Fortunately, a search for scipy pil was fruitful. Hopefully, that will get you going in the right direction.

    Comment

    • Nebulism
      New Member
      • Jun 2007
      • 31

      #3
      Thanks for the reply,

      I'll look around for the mouse coordinate stuff.

      JP

      Comment

      Working...