Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: DISTANCE PIXEL ON A straight line
Date: Thu, 3 May 2012 14:27:17 +0000 (UTC)
Organization: Xoran Technologies
Lines: 7
Message-ID: <jnu4k5$md9$1@newscl01ah.mathworks.com>
References: <jnu34v$f3l$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-01-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1336055237 22953 172.30.248.46 (3 May 2012 14:27:17 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 3 May 2012 14:27:17 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1440443
Xref: news.mathworks.com comp.soft-sys.matlab:766698

"CRIS" wrote in message <jnu34v$f3l$1@newscl01ah.mathworks.com>...
> Hi, i have an image where i find a straight line ( i have the coefficients of this line y =ax+b). I must to find a pixel in the same image (only one pixel) that lies in this straight line and that is at distance 'd' from another pixel in the image (also this pixel lies in the straight line). 
> Any suggestions to do this in a simple and fast way?


No pixel will lie exactly on a general line y=ax+b.
What approximation rule do you intend to use to decide whether the pixel is "close enough" to the line?