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-Álvarez (2021). Creation of Mach Bands image (https://www.mathworks.com/matlabcentral/fileexchange/51150-creation-of-mach-bands-image), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!