Be the first to rate this file! 2 Downloads (last 30 days) File Size: 1.92 KB File ID: #25543
image thumbnail

Bresenham line generation

by Chandan

 

09 Oct 2009

Draws line using Bresenham line generation algorithm

| Watch this File

File Information
Description

This code uses Bresenham line generation algorithm to generate a line, with modified expression for error calculation which does not involves any division or calculation of slope of line. This parameter is however modified by same mechanism as original algorithm but with different value than actual Bresenham algorithm.
This code is generalized in terms of order of input of first point followed by second point or vice versa. Also result is shown in two different form namely, the point form and line segment form.
Any comments and or suggestions for improvement would be appreciated.

MATLAB release MATLAB 7.1.0 (R14SP3)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
mathematics Chandan 12 Oct 2009 12:46:54
computer graphics Chandan 12 Oct 2009 12:46:54
bresenham line algorithm Chandan 12 Oct 2009 12:46:54
line generation Chandan 12 Oct 2009 12:46:54

Contact us at files@mathworks.com