Date: Mon, 11 Nov 1996 17:30:50 GMT Server: NCSA/1.5 Content-type: text/html Last-modified: Tue, 07 Nov 1995 18:56:24 GMT Content-length: 4861
MoveSnakePoint(points[i], points, i, num_points)Rather, you should create a temporary Point variable, say loc_min, define loc_min.row and loc_min.col appropriately and then call
MoveSnakePoint(loc_min, points, i, num_points)MoveSnakePoint() is itself supposed to copy the coordinates from loc_min to points[i] in addition to moving the point on the display.
- | d - | v - v | | i i-1To normalize this value to be in the range [0..1], divide by the largest value of this expression from the 9 values computed for the 9 possible positions of v_i in the 3 x 3 neighborhood centered at the current point.
+-+-+-+ |1|2|3| +-+-+-+-+ X = the snake point |4|*|5| | * = the point under consideration +-+-+-+-+ |6|7|X| | So, the question is: which largest value do I use? The one that +-+-+-+-+ is computed using the neighborhood around X or do I compute based | | | | upon the neighborhood of the point under consideration? So, for +-+-+-+ example, if I wanted to normalize the value computed at *, I would figure out the largest value at 1,2,3,4,*,5,6,7,X becuase that is *'s neighborhood.Which is correct?