You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
DRAWLINE Returns the geometric space (matrix indices) occupied by a line segment in a MxN matrix. Each line segment is defined by two endpoints.
IND = DRAWLINE(P1, P2, IMAGE_SIZE) returns the matrix indices of the line segment with endpoints p1 and p2. If both points are out of the image boundary no line is drawn and an error will appear. If only one of the endpoints is out of the image boundary a line is still drawn.
Cite As
Daniel Lopes (2026). drawline (https://au.mathworks.com/matlabcentral/fileexchange/15374-drawline), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired: Line Phantoms For Back Projection Detectability Tests
General Information
- Version 1.0.0.0 (3.05 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 | Daniel Drucker spotted a bug. "Line 62 should read:
It has now been corrected! |
