5.0

5.0 | 4 ratings Rate this file 11 Downloads (last 30 days) File Size: 5.04 KB File ID: #26790
image thumbnail

Overlay two datasets or indexed images

by Jochen Deibele

 

26 Feb 2010 (Updated 08 Dec 2010)

Overlay of two datasets: independent colormaps, datatip inspection and alterable after creation.

| Watch this File

File Information
Description

If you want to show two 2D datasets as images above each other you might find this class useful.

You can define the range of values which should be shown. The overlay works with independent colormaps for both images. It can partly be hidden for values within a certain range. The datatip provides coordinates, the value of the pixel in the background and in the overlay dataset.

It's an object oriented approach, so the function call instantiates a Matlab class. The instance persists as long as you keep the reference and it is (interactively) modifiable via functions on the commandline / from m-files, so you can update one of the images, change the range, alpha-value ...
So it's supposed to be easy to use even though it's custimizable afterwards.

Try "help overlayImg" to get you started.

MATLAB release MATLAB 7.8 (R2009a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (7)
24 Nov 2010 Justin Fernandes

Thank you! Works very well. Exactly what I was looking for.

24 Nov 2010 Justin Fernandes

Would be nice if you had ability to overlay images that were on two different axes. ie, specify x and y axes of each image. For example, i have an optical image of a scene, and another modality image of a local object within that scene. I would like to overlay the second modality image onto the total scene.

30 Nov 2010 Jochen Deibele

Thank you for the idea! It should work now. Take contact if you face any problems.

12 Dec 2010 igor kolupaev

Thank you, good job, saving time. Trifle with the format of the data does not change the overall positive impression.

20 Dec 2010 Jochen Deibele

Thanks for the rating! You mention you think the dataformat could be improved. Do you have a suggestion? If so feel free to contact me!

16 Jun 2011 Dan

Excellent!

21 Jul 2011 cedric uytingco  
Please login to add a comment or rating.
Updates
25 Nov 2010

Enhancements:
+ support for different resolution on background and overlay
+ set custom axes

26 Nov 2010

+Bugfix (x and y switched)

08 Dec 2010

bugfix in datatip code plus some new helper functions

Tag Activity for this File
Tag Applied By Date/Time
overlay images Jochen Deibele 26 Feb 2010 11:14:42
image mixing blending opacity color Thomas 04 Feb 2011 08:57:21
image mixing blending opacity color Joeri 20 Dec 2011 05:36:20

Contact us at files@mathworks.com