cbimage - checkerboard superposition of two images

Version 1.0.0.0 (2.38 KB) by Daniel
superimpose two images (may be grayscale or RGB) with a chess (checkerboard) pattern
478 Downloads
Updated 6 Jan 2012

View License

checkerboard image, superimpose two images (grayscale/RGB) with a chess pattern

Syntax:
imFinal = cbimage(im1, im2);
imFinal = cbimage(im1, im2, 20); % 20 subdivisions
imFinal = cbimage(im1, im2, [], 10); % lower-intensity pattern got -10 % of max-min

Inputs:
im1: grayscale or RGB image of any size (NxNx1 or NxNx3)
im2: second grayscale or RGB image with the size of im1
nSub: number of subdivisions (1x1 for x==y-direction or 1x2 for [x-, y-direction])
{default: [12, 12]} (optional)
subInt: relative subtracted intensity in percent of max-min
{default: 10% of max-min} (optional)

Outputs:
imFinal: Superimposed image with the same class and same size as the input images

Cite As

Daniel (2024). cbimage - checkerboard superposition of two images (https://www.mathworks.com/matlabcentral/fileexchange/34472-cbimage-checkerboard-superposition-of-two-images), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2011a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired: register_H

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0