version 1.2 (2.08 KB) by Clay Swackhamer
Adds a grid to an image


Updated Mon, 15 Oct 2018 06:49:33 +0000

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 (2022). 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!