Guest User

Untitled

a guest
Jul 20th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. i think this is what i used to have...
  2.  
  3. FUNCTION E, color, x, y, v, h
  4.  
  5. FOR coord 0, N_ELEMENTS(h) DO BEGIN
  6. i = v[coord]
  7. j = h[coord]
  8. value[coord] = ABS(color[x+i,y+j] - color[x-i,y-j]) + ABS(color[x+2*i,y+2*j] - color[x,y])
  9.  
  10. ENDFOR
  11.  
  12. return, value
  13.  
  14. END
  15.  
  16.  
  17.  
  18. then i had a compile error and the problem was i forgot the = in coord = 0
  19.  
  20.  
  21. so now it's like this
  22.  
  23. FUNCTION E, color, x, y, v, h
  24.  
  25. FOR coord = 0, N_ELEMENTS(h) DO BEGIN
  26. i = v[coord]
  27. j = h[coord]
  28. value[coord] = ABS(color[x+i,y+j] - color[x-i,y-j]) + ABS(color[x+2*i,y+2*j] - color[x,y])
  29.  
  30. ENDFOR
  31.  
  32. return, value
  33.  
  34. END
  35.  
  36.  
  37.  
  38. but then it's saying that value is undefined...
  39.  
  40.  
  41. but this was working before bb!!!!!!!!!!
  42.  
  43. this is sooooooo frustrating i don't get it
Add Comment
Please, Sign In to add comment