No BSD License  

Highlights from
digitize

4.0

4.0 | 7 ratings Rate this file 27 Downloads (last 30 days) File Size: 41.36 KB File ID: #8139
image thumbnail

digitize

by alex sanchez

 

27 Jul 2005 (Updated 02 Jun 2006)

Matlab tool for digitizing images

| Watch this File

File Information
Description

DIGITIZE: Image Digitization Tool

Description:

digitize is a user interfase that allows
to import image files (.bmp, etc) into MatLab
to digitize data from. Previous sessions can
also be loaded.

Intructions:
First load a new image by entering the menu "Load"
and clicking on "Load New Image".
First the Referennce Points (points on the image whos
coordinates are known) must be selected.
This is done by entering the "Transformation" menu
and then selecting "Add Points".
Left-click on the points reference points and Right-click
when finished. Then Right-click on any reference point to enter it's "true" coordinate. When the coordinated for all the reference points have been entered the "Reference Data Complete" is checked inside the "Transformation" menu. To digitize, select "Add Points" from the "Digitization" menu. You may start digitizing points on the image at any time, but their transformed coordinated are not calculated until the reference data is complete. To see a digitized point's transformed coordinate, right-click on a point.

A session .mat file contains:
jt,kt - reference points in image axes coordinates
xt,yt - reference points in transformed coordinates
img - the RGB 'Cdata' of the image
jd,kd - digitized points in image axes coordinates
xd,yd - digitized points in transformed coordinates
R - the transformation matrix
The transformation matrix is used to convert from
the image axes coordinate system to the desired
coordinate system by entered the "true" of transformed
coordinates manually.

The first order linear transformation matrix is:
  R = [sx ry 0;...
      ry sy 0;...
      tx ty 1]
  where s -> scaling, r -> rotation, t -> translation

A second and third order fits are also available in the
"Transformation" menu. These are useful for distorted images or maps of unknown projection. The drawback is that larger orders requiere more data.

Click on "Residuals" in the "Transformation" menu
to see the residuals of the reference points.
The residuals are defined as the "true" or "given"
value minus the calculated value using the transformation
matrix. The residuals should be of the order of magnitude
of the pixcel size.

The pixcel size can be seen by clicking on
"Pixcel Size" in the "Transformation" menu.
The pixcel size is the horizontal x vertical direction.
Note that these are approximate because the
image is assumed to be rotated.

The directory is automatically changed to the directory of the image file.

An image can be loaded directly by using for example:
digitize('ImageFileName.bmp')

MATLAB release MATLAB 7 (R14)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (7)
17 Aug 2005 Gabriel Ruiz

In general terms, I think it's a great job, but I also think that some things can improve them. Nice job!!!

30 Aug 2005 Srinath Viswanathan  
05 Jul 2006 Edwin Ebenezer Chellasamy

It is a good tool use in matlab environment. Still needs lot of improvements. iiaebe@yahoo.com %Edwin Ebenezer Chellasamy

21 Jul 2006 pornthep rachnavy  
29 May 2007 Carl Freidhoff

Works well when a small number of points are needed.

13 Aug 2008 Bojan Jokanovic

sometimes it works, sometimes I get message:

??? Error using ==> waitforbuttonpress
waitforbuttonpress exit because all figures have
been deleted.

Error in ==> digitize>AddPoints at 644
    keydown = waitforbuttonpress;

Error in ==> digitize at 136
feval(action,varargin{:});

??? Error while evaluating uimenu Callback

12 Oct 2009 chido  
Please login to add a comment or rating.
Updates
29 Jul 2005

Update description

03 Aug 2005

Fixed Bugs

12 Aug 2005

added options and fixed bugs

31 Aug 2005

fixed bugs

28 Oct 2005

Fixed Bugs and added features

19 Jan 2006

New image

17 Apr 2006

Updates

30 May 2006

fixed bugs

02 Jun 2006

fixed bugs

Tag Activity for this File
Tag Applied By Date/Time
graphics import alex sanchez 22 Oct 2008 07:54:25
graphics export alex sanchez 22 Oct 2008 07:54:25
digitizing alex sanchez 22 Oct 2008 07:54:25
image alex sanchez 22 Oct 2008 07:54:25
utilites alex sanchez 22 Oct 2008 07:54:25
import alex sanchez 22 Oct 2008 07:54:25
graphics alex sanchez 22 Oct 2008 07:54:25
extract Jose Ercolino 20 May 2010 20:39:23
scan Jose Ercolino 20 May 2010 20:39:23
digitize Jose Ercolino 20 May 2010 20:39:23

Contact us at files@mathworks.com