Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for i in range(len(Ysub16)):
  2.         print("i is",i)
  3.         idctArr = transform(Ysub16[i])
  4.         Image.fromarray(idctArr).show()#correct image
  5.         #Image.fromarray(idctArr).show()#incorrect
  6.         dctArr[i] = numpy.empty_like(idctArr)
  7.        
  8.     print("dctArr[i] is currently: {}".format(dctArr[i]))
  9.     print("idctArr is currently: {}".format(idctArr))
  10.     dctArr[i][:] = idctArr
  11.     print("After deep copy, dctArr[i] is now: {}".format(dctArr[i]))
  12.    
  13.         #print("Type of dctArr[i] is {}, type of idctArr is {}.".format(type(dctArr[i]), type(idctArr)))
  14.         Image.fromarray(dctArr[i]).show()
  15.  
  16.         if (dctArr[i]==idctArr).all():
  17.             print("what?")
  18.         else:
  19.             print("Now what?")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement