image thumbnail

cbimage - checkerboard superposition of two images

version (2.38 KB) by Daniel
superimpose two images (may be grayscale or RGB) with a chess (checkerboard) pattern


Updated 06 Jan 2012

View License

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

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

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)

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

Cite As

Daniel (2021). 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

Inspired: register_H

Community Treasure Hunt

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

Start Hunting!