Antwort: Re: getPixel() for loop
Posted by
Joachim Wesner on
URL: http://imagej.273.s1.nabble.com/getPixel-for-loop-tp3702315p3702318.html
HI,
>If the 'origin' of getPixel is (0,0), then in the following for-loop,
>what should the 'condition' be set to? My feeling is that as the
>'initialization' is set to "0" that the 'condition' should be set to
>"j<H-1" - is this correct? Or should it be "j<H", "j<=H", etc?
If H is the # of elements, and the index j starts from 0, it should be
either j < H
or j <= H-1, which are both equivalent!!
(It is 100 elements going from 0 to 99 inclusive!)
JW
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit
http://www.messagelabs.com/email
______________________________________________________________________