Code covered by the BSD License  

Highlights from
ginput2.m v3.1 (Nov 2009)

4.14286

4.1 | 7 ratings Rate this file 44 Downloads (last 30 days) File Size: 7.49 KB File ID: #20645
image thumbnail

ginput2.m v3.1 (Nov 2009)

by

 

09 Jul 2008 (Updated )

Same as GINPUT but with ZOOM, PAN and (optionally) PLOT and image SCALE/GEOREFERENCE!

| Watch this File

File Information
Description

Do you still use GINPUT to graphically select points on current axes with the mouse? Try this one!

With GINPUT2 you can also:
1. ZOOM: in, out (double-click)!
2. PAN: when dragging!
3. DELETE: last selected point!
4. PLOT: while selecting! (optional, just input the line style!)
5. SCALE or GEOREFERENCE images! (optional, just input: true)

So, besides of selecting points in a more precise way (zooming) you can DIGITIZE(!!!) lines with the last two options, by simply using:
>> ginput2(true,'.k')

Enjoy it!
Bug reports and comments will be very appreciated!

Acknowledgements

Zinput, Graphical Data Selection Tool, and Digitize07 inspired this file.

This file inspired Click2smooth.M V1.0 (Sep 2009), T Marigram.M V1.3, Gdistm, Gdist, and Clickz.

MATLAB release MATLAB 7.7 (R2008b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (9)
15 Aug 2014 adi

needs one big improvement: when I zoom in, the image jumps every time I select a point! this is very annoying... otherwise, a very good tool

11 Aug 2014 Genevieve  
01 Oct 2012 Andrew Simpson

This looks very promising, but isn't working for me - I've tried various ways of running it, including the examples in the source, and every time I click on the plot it simply zooms in. I'm sure this isn't the expected behaviour - I can't get it to select any points at all, just zoom.

I'm using R2012a.

10 Feb 2011 Sherif

Excellent work. Thank you very much.

20 Oct 2010 Igor  
26 Feb 2010 Mehdi

Thanks for sharing such a useful code,
for my data, after running my code I get images for which I need the following action:
When selecting a part of image,I want Matlab to run my code for that area and calculate or graph other parameters for that part of image,
How can I do that?

01 Dec 2009 Anilson

I take that back. It does work on 3 dimension picture.
I apologize.

01 Dec 2009 Anilson  
06 Mar 2009 Olga Avila

This is really good!
It works perfect for me, and was exactly what I needed...
I just added a minor detail to plot a line from an input center point to the ginput point selected by the user (like a radial line). This was just to improve visualization for my needs.
Thank you very much!

Updates
08 Jun 2009

Changed default YESERROR value and fixed a bug there. Changed behavior when N==1. Fixed bug with zoom out. Changed default selection keys. Changed default selection click mouse: from left one to the right one.

20 Aug 2009

v2.1 Fixed bugs related with points delection. Added new 'keepzoom' feature.

05 Nov 2009

v3.0 Now allows panning while dragging. Some changes on help.

12 Nov 2009

v3.1 Now returns when N=1 and an "strange" KEY is pressed.

Contact us