File Exchange

image thumbnail


version (4.76 KB) by Todd Pataky
Digitze points on an image using the mouse.


Updated 18 Apr 2007

No License

DIGITIZE07(filename) displays an image and allows the user to digitize points using the mouse, similar to MATLAB's built-in GINPUT and other digitizers available at Matlab Central's File Exchange.

The main new feature of this version is that points are draggable; this permits fine tuning of already digitized points using the zoom feature. Other features adopted from previous versions include:
- Import previously digitized points
- Export digitized points to the workspace or file
- Interactively change the marker color, size, and shape
- Pin digitized points (i.e. toggle draggable mode)
- Delete unwanted points by right-clicking on the point
- Fully interactive GUI: Errors are reported to dialog boxes rather than to the Workspace

Cite As

Todd Pataky (2020). DIGITIZE07 (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (9)

Easy to use - just open the script in MATLAB and click "Run".

You can customise the point markers and zoom in and out easily using the zoom button and the scroll wheel.

Note that it will not digitize graphs, and scale selected points according to selected axes. The best Mathworks File Exchange code I have found for this job is "digitize2.m".


very good and easy to use!

Peter Pap

Hello everyone!!! I'm student in Greece and I am a new user of MATLAB...
Which type of files are recognized by IMREAD??
Can I call "digitize07(filename)" in the command window?
When we says "filename", we means the path where the file exists?
And finally, we must put the image file as a viriable?
(sorry for bad English)

Gordon Judd

This is a great digitizing tool and being able to adjust the position of a point is a great feature. I have not be able to figure out how to modify it so it could be used as a callable sub-routine that would return the XY values. Is that possible to do with a GUI oriented program?

Isaac A

Does not work on UNIX. Please amend lines 157,167 to use fullfile:

[x,map] = imread([matlabroot,'\toolbox\matlab\icons\pin_icon.gif']);
% should be[x,map] = imread(fullfile(matlabroot,'toolbox','matlab','icons','pin_icon.gif'));



Easy to use and extremely effective; great job!

Kava Crosson

Just what I was looking for after 2 hours of searching. Thanks a lot.

beth meacham

works beautifully! thank you.

Eric Desailly

Very Good
I am just wondering if it could include labelling of the points?

MATLAB Release Compatibility
Created with R2007a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: digitize2.m, draggable

Inspired: ginput2.m v3.1 (Nov 2009)