spacepaste

  1.  
  2. for s in range (0, hist.shape[1]):
  3. for i in range (0, hist.shape[0], 2):
  4. #if green
  5. if hist[i,s] > hist[i+1,s]:
  6. histimg[i,s,1] = (hist[i,s] - hist[i+1,s])
  7. #red
  8. else:
  9. histimg[i,s,2] = hist[i+1,s] - hist[i,s]
  10.