Code covered by the BSD License  

Highlights from
Image Measurement Utility

4.71429

4.7 | 7 ratings Rate this file 94 Downloads (last 30 days) File Size: 1.21 MB File ID: #25964
image thumbnail

Image Measurement Utility

by Jan Neggers

 

27 Nov 2009 (Updated 10 Jan 2012)

Interactive tool allowing the measurement of distances, radii, and angles in images

| Watch this File

File Information
Description

This tool is intended to aid measuring on images. In order to do this the image needs to have some visual scale to calibrate the pixel to length ratio on, e.g. scale bar, ruler.

It can measure:
- the distance between points
- the perpendicular distance between a line and a point
- the length of a spline
- the radius of a circle
- the angle of the intersection of two lines
All measurements can be deleted or modified afterwards.

The tool is intended for high quality measurements, and is therefore build around tools like "imline" from the image processing toolbox. These tools are powerful because they allow you to select, zoom, re-adjust, and than confirm your selection. Nevertheless, a "quick" selection option is added to allow measurements with less mouse clicks (also useful for users whom don't have the IP toolbox).

The tool can handle batches of images, allowing measurements on several images with only one calibration. This also allows for measurements where a different image was used to calibrate the scale on.

The results can be saved to the workspace and to a text file (which can be read in excel as a .csv). Additionally two image save options are provided, i.e. PNG and PDF, where the PNG version also anti-aliases the image.

Finally, help is provided in the form of a status bar guiding the user through the process, complemented with readable tooltips and a full help readme, accessible from the interface.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
area measuring, Image Measurement Utility

Required Products Image Processing Toolbox
MATLAB release MATLAB 7.9 (2009b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (13)
01 Dec 2009 Jan Neggers

I've posted an update to fix some minor bugs, awaiting review at the moment.

27 Jan 2010 prashanth

this GUI is excellent. It can measure the distance between 2 points, perpendicular distance of a point from a line, angle between 2 lines. This GUI is fantastic.

02 Apr 2010 Till

Hi Jan,
thanks for this nice tool. However, I have a question: I have gray scale TEM images in tif format. Your tool seems to convert them to RGB. I had a very short glance at the code, and think it is related to the call of imagesc in line 324. It might also be related to the specific format of my tif file. It would be nice, if you could comment on this.

01 Sep 2010 Jason Tolentino

great program in analyzing TEM images. I wanted to know how difficult is it to save the data because I would like to do size distribution analysis on the saved data.

10 Mar 2011 Becky

I am getting an error when I try to calibrate (see below). Can you offer any suggestions? I have an jpeg radiographic image.

??? Undefined function or method 'imline' for input arguments of type 'double'.

Error in ==> measuretool>Calibrate_Callback at 435
    h = imline(Data.gca,[u(1) v(1) ; u(2) v(2)]);

Error in ==> gui_mainfcn at 96
        feval(varargin{:});

Error in ==> measuretool at 41
    gui_mainfcn(gui_State, varargin{:});

Error in ==> @(hObject,eventdata)measuretool('Calibrate_Callback',hObject,eventdata,guidata(hObject))

 
??? Error while evaluating uicontrol Callback

11 Mar 2011 Jan Neggers

@Becky

If you don't have the function imline, then you probably have a matlab version older then 2009b, or maybe the function is provided by the image processing toolbox.

09 Oct 2011 GANESH Prabhakar

superb tool ..Thank u

28 Dec 2011 Jakub

Hi Jan,

Great tool. Would it be possible to add a feature to measure mean intensity of signal within line length.

cheers
jakub

10 Jan 2012 Jan Neggers

Hi Jakub, i'll see what I can do, this is a little bit more complex as one might think since the intensity is stored in pixels which are discrete by nature, and the measurement lines do not follow pixel locations per se, so some interpolation is required.

10 Jan 2012 ling li

wonderful

29 Mar 2012 Selcuk Fidan  
20 May 2012 Civil Eng  
20 May 2012 Civil Eng

I am getting errors whatever I click

Please login to add a comment or rating.
Updates
01 Dec 2009

Fixed some minor bugs, that would throw errors to the command screen when pressing buttons in an unexpected order.

06 Apr 2010

I've fixed the color issue, mentioned by Till, also added a lot of comments to make the code more readable, and changed the method of providing the in GUI help.

23 Sep 2011

Added the long awaited save options, and fixed a bug with the help function not working.

28 Sep 2011

A major update of the GUI, the interface is more intuitive now, also, some options have been added to allow the use of this tool for pre 2009b versions of matlab or in absense of the IP toolbox.

07 Dec 2011

Made the GUI more intuative by improving the status texts, and disabling most buttons during a measurement.

10 Jan 2012

Added a feature, as suggested by Jakub, now the average intensity can be drawn, and the intensity profiles can be saved to the workspace.

Tag Activity for this File
Tag Applied By Date/Time
image processing Jan Neggers 30 Nov 2009 12:14:09
measurement Jan Neggers 30 Nov 2009 12:14:09
microscope Jan Neggers 30 Nov 2009 12:14:09
image processing Gavriil 11 Oct 2011 21:47:18
measurement Kevin Sharp 13 Jan 2012 00:08:11
image processing Jasper Engel 27 Mar 2012 04:36:36
measurement ding 25 May 2012 19:54:13

Contact us at files@mathworks.com