Re: Nelp needed
Posted by
Philip Ershler on
Dec 28, 2009; 7:54am
URL: http://imagej.273.s1.nabble.com/Nelp-needed-tp3689904p3689910.html
On Dec 27, 2009, at 9:16 PM, Dilip Baluguri <
[hidden email]
> wrote:
> I just want to know how a line is drawn between two points. What is
> I need
> is how the intermediate pixels are choosen while drawing a line.
> Given two
> poins A(10,20) and B(40,200) how intermediate pixels are choosen.Any
> help is
> appreciated.
> Thanks in advance.
>
I'm not sure how ImageJ draws lines, but most often this sort of
problem is handled with an "Incremental Sum Algorithm". You can google
for incremental sum algorithm and lines to find information about this
technique.
HTH,
Phil