| Reference | Downloads | Github

How to apply noisy bits to entire display?

Hi, I am aiming to use the noisy bits method to effectively have continuous screen luminance for a contrast detection experiment. My plan is to convert the entire display into a numpy array, perform the noisy bits transformation, then output the transformed array as my display.

However, using the following code, it appears there are no float values in my display for me to perform noisy bits upon. This remains even after gamma correction:

im = np.array(win.getMovieFrame())
if im.all() % 1 == 0:
message = "all pixel values are integers"

Also, if I successfully perform this transformation, I am a little lost on how I would output the transformed array as my display window.

Could someone point me in the right direction i.e. suggest my next step?