Adds a grid to an image


Updated 15 Oct 2018

View License

imageGrid puts a grid on an image

The number of horizontal and vertical lines and line style can be adjusted. Setting 'method' to 'draw' (default) opens a new figure with the grid drawn onto it. Setting 'method' to 'burn' outputs a new image with the grid burned onto it, which requires the computer vision toolbox. If you don't have the computer vision system toolbox don't specify a method, and then you can manually save the figure.

Cite As

Clay Swackhamer (2023). imageGrid (, MATLAB Central File Exchange. Retrieved .

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

Inspired: Morphological

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

Corrected version number


Updated with better examples