Code covered by the BSD License  

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

4.75

4.8 | 4 ratings Rate this file 38 Downloads (last 30 days) File Size: 7.49 KB File ID: #20645
image thumbnail

ginput2.m v3.1 (Nov 2009)

by Carlos Adrian Vargas Aguilera

 

09 Jul 2008 (Updated 12 Nov 2009)

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

The author wishes to acknowledge the following in the creation of this submission:
zinput, Graphical data selection tool, DIGITIZE07
This submission has inspired the following:
click2smooth.m v1.0 (Sep 2009)

MATLAB release MATLAB 7.7 (R2008b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (6)
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!

01 Dec 2009 Anilson  
01 Dec 2009 Anilson

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

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?

20 Oct 2010 Igor  
10 Feb 2011 Sherif

Excellent work. Thank you very much.

Please login to add a comment or rating.
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.

Tag Activity for this File
Tag Applied By Date/Time
data exploration Carlos Adrian Vargas Aguilera 22 Oct 2008 10:09:46
ginput Carlos Adrian Vargas Aguilera 22 Oct 2008 10:09:46
vectorize Carlos Adrian Vargas Aguilera 22 Oct 2008 10:09:46
raster Carlos Adrian Vargas Aguilera 22 Oct 2008 10:09:46
zoom Carlos Adrian Vargas Aguilera 22 Oct 2008 10:09:46
doble click Carlos Adrian Vargas Aguilera 22 Oct 2008 10:09:46
digit Carlos Adrian Vargas Aguilera 22 Oct 2008 10:09:46
pan Carlos Adrian Vargas Aguilera 22 Oct 2008 10:09:46
georeference Carlos Adrian Vargas Aguilera 22 Oct 2008 10:09:46
ginput Olga Avila 06 Mar 2009 13:25:54
georeference Olga Avila 06 Mar 2009 13:26:00
zoom Olga Avila 06 Mar 2009 13:26:03
georeference Chaos 08 Mar 2009 17:17:50
image processing Carlos Adrian Vargas Aguilera 08 Jun 2009 15:40:16
double click Carlos Adrian Vargas Aguilera 06 Nov 2009 09:32:26
scaling Carlos Adrian Vargas Aguilera 06 Nov 2009 09:32:26
digitize Carlos Adrian Vargas Aguilera 06 Nov 2009 09:32:26
mouse Carlos Adrian Vargas Aguilera 06 Nov 2009 09:32:26
keyboard Carlos Adrian Vargas Aguilera 06 Nov 2009 09:32:26
dragrect Carlos Adrian Vargas Aguilera 06 Nov 2009 09:32:26
current point Carlos Adrian Vargas Aguilera 06 Nov 2009 09:32:26
waitforbuttonpress Carlos Adrian Vargas Aguilera 06 Nov 2009 09:32:26
extract Jose Ercolino 20 May 2010 20:37:58
scan Jose Ercolino 20 May 2010 20:37:58
digitize Jose Ercolino 20 May 2010 20:37:58

Contact us at files@mathworks.com