Bresenham Line of Sight

Version 1.0.1 (33.9 KB) by Patrick Hew
Check for line of sight between points in a binary occupancy grid using Bresenham's line algorithm.
72 Downloads
Updated 23 Apr 2020

View License

Check for line of sight between points in a binary occupancy grid using Bresenham's line algorithm. The function bresenhamlineofsightint checks for line of sight between cell corners (integer coordinates), while the function bresenhamlineofsightarb checks for line of sight between arbitrary points (arbitrary coordinates). Implementations are provided as m-functions and C source code that can be compiled into MEX-functions (the m-functions were developed as the prototypes for the MEX-functions).

Cite As

Patrick Hew (2024). Bresenham Line of Sight (https://www.mathworks.com/matlabcentral/fileexchange/75153-bresenham-line-of-sight), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2017a
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!

Bresenham Line Segments/demo

Version Published Release Notes
1.0.1