image thumbnail

Creation of Mach Bands image

version (1.5 KB) by Jesús Monge-Álvarez
A simple code to create and image with the Mach Bands.


Updated 13 Jun 2015

View License

In this code I offer an implementation of the Band Mach image in black, white and gray levels. It will allow you to experiment this particular visual effect. Besides, for those who are introducint in the field of image processing with MATLAB, the function shows the differences between 'imshow' and 'imagesc' and the differences between UINT8 format and DOUBLE format. The function itself save the image in disk with PNG format and a depth of 16 bits per pixel.
The code is properly commented in English.
Any suggestion is welcomed!!!

Jesús Monge.

Cite As

Jesús Monge-Álvarez (2021). Creation of Mach Bands image (, MATLAB Central File Exchange. Retrieved .

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

Community Treasure Hunt

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

Start Hunting!