Code covered by the BSD License  

Highlights from
IMAGEVIEWER

5.0

5.0 | 5 ratings Rate this file 29 Downloads (last 30 days) File Size: 9.34 KB File ID: #13000
image thumbnail

IMAGEVIEWER

by Jiro Doke

 

14 Nov 2006 (Updated 07 Jan 2010)

A GUI for viewing and interactively exploring image files.

| Watch this File

File Information
Description

IMAGEVIEWER Interactively pan and zoom images on the computer.

IMAGEVIEWER starts a GUI for opening image files and interactive panning and zooming.

IMAGEVIEWER(DIRNAME) starts the GUI with DIRNAME as the initial directory.

The GUI allows you to navigate through your computer and quickly view image files. It also allows you to interactively explore your images by panning (clicking and drag), zooming (right-click and drag), and centering view (double-clicking).

MATLAB release MATLAB 7.3 (R2006b)
Other requirements Created in R2006b, but it should work in R14 or later.
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (8)
15 Nov 2006 Jiro Doke

The program currently does not work on certain images. A new version will be posted in the next couple of days. Thanks.

17 Nov 2006 Christian Schultes

Jiro,
It works very well with R14SP1 - I am very impressed. Thank you!
Very soon I do need only Matlab - when is the Office tool available to replace Word?

22 Nov 2006 Luis Nieto

Excellent job, works fine in R14 too.

26 Nov 2006 Tamir Suliman

Thats a very nice job great

17 Jan 2007 Martin Fon

This is a very good job. Could it be used for cropping?

16 Feb 2007 Edward Chao

Excellent examples of using the object callbacks (ButtonDownFcn, WindowButtonMotionFcn, WindowButtonUpFcn) for panning and zooming. I was looking for some good examples for a long time. Thank you very much!

14 Jun 2008 Tim Tam

How can one retrieve the name of the image file that the user has selected ?
I've tried returning then querying various handles, but can't get any approach to work.
Also gcf and gca don't seem to work with the viewer - when issued they create new figures / axes.

28 Jun 2008 Jiro Doke

Tim Tam,
I didn't code it so that you can extract the selected file name through the handles. Also, I made the GUI "HanldeVisibiltiy" to "off" on purpose so that it can't be accessed from the Command Window. That's why "gcf" and "gca" doesn't see it.

If you need to access the inner workings, I suggest you take a look inside the m-code. When I create the initial figure, I set the "HandleVisibility". You can change that to "on". Also, there's a place in the code that I extract the file name from the list box.

Please login to add a comment or rating.
Updates
15 Nov 2006

It actually works in R14 or later.

16 Nov 2006

Bug fixes. Make sure it works with various image types.

17 Nov 2006

Bug fix for image centering feature. Also allow the window to be resized (without distortion of components)

06 Dec 2006

Cosmetic changes to the GUI. A better TIMER management.

07 Jan 2010

Copyright update. Added scroll wheel zoom.

Tag Activity for this File
Tag Applied By Date/Time
data exploration Jiro Doke 22 Oct 2008 08:49:18
images Jiro Doke 22 Oct 2008 08:49:18
pictures Jiro Doke 22 Oct 2008 08:49:18
thumbnails Jiro Doke 22 Oct 2008 08:49:18
preview Jiro Doke 22 Oct 2008 08:49:18
gui Jiro Doke 22 Oct 2008 08:49:18
interactive Jiro Doke 22 Oct 2008 08:49:18
exploration Jiro Doke 22 Oct 2008 08:49:18

Contact us at files@mathworks.com