imcrop

Dear All, I am new to matplotlib and I was wondering if

    > there is any functions like imcrop in matlab which allow to
    > interactively select the zone of the image.

I do not currently have matlab installed on my system. Could you
describe what imcrop does. Not knowing, I'll venture and answer

1) you can use the zoom-to-rectangle feature on the toolbar to zoom
    to the rectangle of interest. Equivalently, you can set the axis
    xlim and ylim to view only part of the rectangle

2) you can extract the region of interest from you numerix array
    using array slicing before passing it to matplotlib for plotting.

JDH

    > Dear All, I am new to matplotlib and I was wondering if
    > there is any functions like imcrop in matlab which allow to
    > interactively select the zone of the image.

I do not currently have matlab installed on my system. Could you
describe what imcrop does. Not knowing, I'll venture and answer

When the function is called, it displays the original image. Then, the user can select a box with a mouse. As a result the function return the top left corner coordinate of the box and the size of the box.

1) you can use the zoom-to-rectangle feature on the toolbar to zoom
    to the rectangle of interest. Equivalently, you can set the axis
    xlim and ylim to view only part of the rectangle

Once I have zoomed to the area of interest, how do I recover the information of my box ( dimensions, coordinates). Is there a way to get these information and then use them to slice the array to extract the region of interest.

2) you can extract the region of interest from you numerix array
    using array slicing before passing it to matplotlib for plotting.

JDH

-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Brice

···

On 12 Jul 2005, at 19:27, John Hunter wrote: