Bresenham Line of Sight
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
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Bresenham Line Segments/src
Bresenham Line Segments/test
Bresenham Line Segments/demo
Version | Published | Release Notes | |
---|---|---|---|
1.0.1 |