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).
Patrick Hew (2020). Bresenham Line of Sight (https://www.mathworks.com/matlabcentral/fileexchange/75153-bresenham-line-of-sight), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!