Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- i think this is what i used to have...
- FUNCTION E, color, x, y, v, h
- FOR coord 0, N_ELEMENTS(h) DO BEGIN
- i = v[coord]
- j = h[coord]
- value[coord] = ABS(color[x+i,y+j] - color[x-i,y-j]) + ABS(color[x+2*i,y+2*j] - color[x,y])
- ENDFOR
- return, value
- END
- then i had a compile error and the problem was i forgot the = in coord = 0
- so now it's like this
- FUNCTION E, color, x, y, v, h
- FOR coord = 0, N_ELEMENTS(h) DO BEGIN
- i = v[coord]
- j = h[coord]
- value[coord] = ABS(color[x+i,y+j] - color[x-i,y-j]) + ABS(color[x+2*i,y+2*j] - color[x,y])
- ENDFOR
- return, value
- END
- but then it's saying that value is undefined...
- but this was working before bb!!!!!!!!!!
- this is sooooooo frustrating i don't get it
Add Comment
Please, Sign In to add comment