images/
vis_blend.pro
includes main-level programBlend two images together using the given alpha channel.
top vis_blend
result = vis_blend(im1, im2 [, alpha_channel=float])
Blend two images together using the given alpha channel. If the images are of different interleaves they are converted to a common interleave:
* if one image is 2D and one is 3D, the 2D image is converted to the interleave of the 3D image (using the current color table) * if both images are 3D, the second image is converted to the interleave of the first image
Return value
image
Parameters
- im1 in required type=image
first image to blend
- im2 in required type=image
second image to blend; must have the same xsize and ysize as im1, but may have a different number of bands
Keywords
- alpha_channel in optional type=float default=0.5
value in 0.0 - 1.0; 1.0 is all im1 and 0.0 is all im2; can be a scalar or a 2-dimensional image the same size as the combined images
Examples
Run the main-level program at the end of this file with:
IDL> .run vis_blend
File attributes
Modification date: | Fri Mar 4 16:43:49 2011 |
Lines: | 207 |
Docformat: | rst rst |