Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for i in range(len(Ysub16)):
- print("i is",i)
- idctArr = transform(Ysub16[i])
- Image.fromarray(idctArr).show()#correct image
- #Image.fromarray(idctArr).show()#incorrect
- dctArr[i] = numpy.empty_like(idctArr)
- print("dctArr[i] is currently: {}".format(dctArr[i]))
- print("idctArr is currently: {}".format(idctArr))
- dctArr[i][:] = idctArr
- print("After deep copy, dctArr[i] is now: {}".format(dctArr[i]))
- #print("Type of dctArr[i] is {}, type of idctArr is {}.".format(type(dctArr[i]), type(idctArr)))
- Image.fromarray(dctArr[i]).show()
- if (dctArr[i]==idctArr).all():
- print("what?")
- else:
- print("Now what?")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement