File Exchange

image thumbnail

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.

2 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 (2020). Bresenham Line of Sight (https://www.mathworks.com/matlabcentral/fileexchange/75153-bresenham-line-of-sight), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)

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