You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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.
Cite As
Jochen Rau (2026). Overlay two datasets or indexed images (https://in.mathworks.com/matlabcentral/fileexchange/26790-overlay-two-datasets-or-indexed-images), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired: overlayVolume, imoverlay
General Information
- Version 1.4.0.0 (5.04 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
