Code covered by the BSD License  

Highlights from
imoverlay

Be the first to rate this file! 8 Downloads (last 30 days) File Size: 8.25 KB File ID: #42904
image thumbnail

imoverlay

by Matt Smith

 

01 Aug 2013

Create a color overlay of two images. Allows transparency and thresholding.

| Watch this File

File Information
Description

IMOVERLAY allows you to easily display one image in color on top of another grayscale image. You can independently control the clim of each image, the colormap used for the top image, and the transparency. Resulting image can be displayed in a separate figure or in a supplied axis.

IMOVERLAY_TOOL is an interface to graphically overlay one image on top of another and manipulate colormap, thresholding, and transparency.

- Allows independent control of both images
- Workspace variables are selected via a dropdown menu
- Easily adjust colormap
- Adjustable transparency
- Load 3D or 4D datasets
- Export figure for saving
- Accelerator keys for quick selections

Examples:
      
      % Overlay one image transparently onto another
      imB = phantom(256); % Background image
      imF = rgb2gray(imread('ngc6543a.jpg')); % Foreground image
      [hf,hb] = imoverlay(imB,imF,[40,180],[0,0.6],'jet',0.6);
      colormap('hot'); % figure colormap still applies
 
 
      % Use the interface for flexibility
      imoverlay_tool;

Acknowledgements

Overlay Two Datasets Or Indexed Images inspired this file.

Required Products Image Processing Toolbox
MATLAB release MATLAB 8.1 (R2013a)
Tags for This File  
Everyone's Tags
color overlay, image processing, medical, overlay, transparency
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.

Contact us