No BSD License  

Highlights from
digitize2.m

4.625

4.6 | 16 ratings Rate this file 38 Downloads (last 30 days) File Size: 8.24 KB File ID: #928

digitize2.m

by Anil Prasad

 

14 Oct 2001 (Updated 15 Oct 2001)

GUI-driven version of original digitize function

Editor's Notes:

This file was a File Exchange Pick of the Week

| Watch this File

File Information
Description

DIGITIZE digitize data from image.
DIGITIZE with no input or output arguments allows the user to select an image file to load; only IMREAD-compatible image files are supported. The function then prompts the user to graphically identify the location of the origin and the X- and Y- axes of the plot. The user may then graphically select an arbitrary number of data points from anywhere on the image using the left mouse button. Data acquisition is terminated by clicking the right mouse button. The function then prompts the user to save the acquired data to file.

Acknowledgements
This submission has inspired the following:
DIGITIZE07, Digitize_map
MATLAB release MATLAB 6.0 (R12)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (17)
20 May 2003 Steve Grobler

Works well on my .jpg graphs.

Ability to handle axes that are not perpendicular due to photocopying distortion would be useful.

Saved me a lot of time in trying to write my own program.

Has a bug at line 273, when writing data to file - fixed simply by splitting the if statement into two...see lines 273/274 below

270 if nargout == 0,
271 % Save data to file
272 [writefname, writepname] = uiputfile('*.dat','Save data as');
273 if (writefname == 0)
274 elseif (writepname == 0)
275 close(FigName)
            break
            return
        end

25 Mar 2004 Mohamad Alkhalidi

Thank you. This is Excellent program. Helped me alot and saved my time. Also thanks to Steve Grobler for fixing the bug.

03 Apr 2004 J Fujii

Dittos on the above comments

05 Apr 2004 Ashish Nedungadi

Great job! Saved me from having to ask author for data!

Would be great to add feature for multiple lines on same plot. e.g. if there are two curves, it'd be nice to save to a different file and/or variable name.

14 Jun 2004 Neil Bailey

What can I say? This script saved my eyes. I was able to trade 4 hours per graph of squinting over a ruler and planimeter for 30 minutes of scanning and clicking points.

01 Jul 2004 A Wilson

A great little function, and it saved me a lot of work. Well done!

16 Nov 2004 Angel Ruiz Angulo

Excelente!!!!!!
It is so helpful
thanks

10 Dec 2004 Clive Moon

Very helpful function. Would be useful to have a little window showing the cursor and surroundings magnified to improve accuracy of point selection.

28 Oct 2005 Guido Dietz

Thanx a lot!

29 May 2006 Panagiotis angelikopoulos

extremelly easy,handy and well written.well done anil!

10 May 2007 Eskandar Mounif

MErci Merci

26 Jun 2007 beth meacham

its lovely except it doesn't save the data the data file - i get this error message:

??? Error using ==> or
Inputs must have the same size.

Error in ==> digitize2 at 273
if (writefname == 0) | (writepname == 0),

10 Aug 2009 moises

Excellent!!!!

03 Dec 2009 Ng Cg  
23 Jun 2010 Eoin

Really good - I had the same error bas beth meacham (I use linux), but I grabbed the data fro the command line anyway.

26 Nov 2011 shiva Banerjee

The error in writing the data-file arises from using the single pipe for or operator ("|") in line 273. Change this to "||" to fix.

16 Jan 2012 AHMET ANIL DINDAR

Long live Anil...

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
gui Anil Prasad 22 Oct 2008 06:38:32
display Anil Prasad 22 Oct 2008 06:38:32
digitize Anil Prasad 22 Oct 2008 06:38:32
annotation Anil Prasad 22 Oct 2008 06:38:32
image processing Anil Prasad 22 Oct 2008 06:38:33
data Anil Prasad 22 Oct 2008 06:38:33
extract Jose Ercolino 20 May 2010 20:39:59
scan Jose Ercolino 20 May 2010 20:39:59
digitize Jose Ercolino 20 May 2010 20:39:59

Contact us at files@mathworks.com