Hi !
Psychtoolbox Version - 3.0.14 - Flavor: beta - Corresponds to SVN version 8110
Platform - Win 10
I have been trying to achieve more dynamic range – say, values between pixel values of 100 and 101 for example. The PsychImaging page recommended that I switch to ‘FloatingPoint16Bit’, which I did, according to the code snippet at the bottom.
And to test if I was getting better resolution, I tried testing whether :
- The output of 100 was different from 100.6
- Whether the difference between 100 and 100.6 was lesser than that between 100 and 101.
In both cases, GetImage (with floatingpoint=1) returned a difference of 0.0039 ( ~ 1/256) which suggests that I am not getting a better resolution than the normal 8 bit depth.
I think there are two possibilities :
- GetImage is not able to capture the differences (but the colors shown on the screen are different)
- The images displayed on the Screen are not different between the pairs [100, 100.6] and [100, 101]
In either case, I’d like to be able to test and conclusively say that the colors shown are indeed different. I’d be grateful if I can get some help on this
CODE:
window = PsychImaging('OpenWindow', 1);
PsychImaging('PrepareConfiguration');
PsychImaging('AddTask', 'AllViews', 'EnableCLUTMapping');
PsychImaging('AddTask', 'General', 'FloatingPoint16Bit');
Screen('FillRect', window, [100, 100, 100]);
Screen('Flip', window);
img1 = Screen('GetImage', window, [], [], 1);
WaitSecs(2);
Screen('FillRect', window, [100.6, 100.6, 100.6]);
Screen('Flip', window);
img2 = Screen('GetImage', window, [], [], 1);
WaitSecs(2);
sca;
Regards,
Sricharan