Be the first to rate this file! 5 Downloads (last 30 days) File Size: 3.73 KB File ID: #25937
image thumbnail

Draw Line Segments (anti aliased)

by Alvin

 

23 Nov 2009 (Updated 02 Feb 2010)

Drawing line segments, Distances from line segments, and line segment masks

| Watch this File

File Information
Description

computes the distance from a given line segment (in 2d) or draws an anti aliased line

see http://mathworld.wolfram.com/Point-LineDistance2-Dimensional.html for computation of the orthogonal distance to the line.

Where appropriate, gets the orthogonal distance to the line, or one of the two end points.

Can be used to make anti aliased line segment(s) drawings / masks (see lineMask.m)

Can also be used to compute the distance from multiple line segments by taking the minimum of the distances to each line segment.

Version 0.1: Nov 23, 2009

MATLAB release MATLAB 7.8 (R2009a)
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.
Updates
02 Feb 2010

Changed title to be more descriptive

Tag Activity for this File
Tag Applied By Date/Time
lines Alvin 24 Nov 2009 10:36:06
image processing Alvin 24 Nov 2009 10:36:06
line segment Alvin 24 Nov 2009 10:36:07
distance Alvin 24 Nov 2009 10:36:07
antialiased Alvin 24 Nov 2009 10:36:07
draw line Alvin 07 Jan 2010 10:51:26
draw Alvin 12 Jan 2010 09:34:47
lines Gustaf Kylberg 31 May 2010 08:11:52
lines Steve 13 Sep 2010 22:11:53
draw Spencer 16 Feb 2011 15:19:42

Contact us at files@mathworks.com