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$>
References: <jnu34v$f3l$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1336055237 22953 (3 May 2012 14:27:17 GMT)
NNTP-Posting-Date: Thu, 3 May 2012 14:27:17 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1440443
Xref: comp.soft-sys.matlab:766698

"CRIS" wrote in message <jnu34v$f3l$>...
> 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?