Hi Everyone,
For our Bits++ box in Mono++ mode, I am trying to load 14 bit LUT using the PsychImaging pipeline and PsychColourCorrection function.
Here is the abbreviated code:
----
PsychImaging('PrepareConfiguration');
PsychImaging('AddTask', 'General', 'EnableBits++Mono++Output');
PsychImaging('AddTask', 'FinalFormatting', 'DisplayColorCorrection', 'LookupTable');
[window, screenRect] = PsychImaging('OpenWindow', whichScreen, 0.5);
LUTSize = 2^14;
LUT = linspace(0, 1, LUTSize);
% A few lines here to adjust LUT values
% ….
PsychColorCorrection('SetLookupTable', window, LUT);
----
The last line above generates the following error:
------
--- ERROR
??? Error using ==> moglcore
MOGL-Error: Your OpenGL command glTexImage2D() caused the following OpenGL error: invalid value. Aborted.
Error in ==> glTexImage2D at 25
moglcore( 'glTexImage2D', target, level, internalformat, width, height, border, format, type, pixels );
Error in ==> PsychColorCorrection at 954
glTexImage2D(GL.TEXTURE_RECTANGLE_EXT, 0, internalFormat, size(clut, 1), size(clut, 2), 0, GL.LUMINANCE,
GL.FLOAT, clut);
Error in ==> CalibrateMonoPlusPlus at 139
PsychColorCorrection('SetLookupTable', window, LUT);
————
The code does work after changing the LUTsize to 2^13 or below. But values above 2^13 generate the above error.
I thought to ask here whether anyone had a similar experience, before trying different hardware configurations.
The setup:
Videocard: NVIDIA Quadro FX580 (2 GB)
Bits++ box from CRS loaded up with Mono++ firmware
Psychtoolbox ver: 3.0.8
Computer: DELL Precision T3500, 2.67 GHz, 4 GB RAM,
Monitor: BENQ P992
OS: 32-bit Windows 7
Additional info:
* The ‘SimpleGamma’ adjustment, while working, doesn’t provide the necessary correction because the luminance response function has a sigmoid shape.
* I've tested the Bits++ box in Mono++ mode using BitsPlusIdentityClutTest script and it seemed to function properly.
Thank you,
Arman
--
ARMAN ABRAHAMYAN | Postdoctoral Research Associate
School of Psychology | THE UNIVERSITY OF SYDNEY
Griffith Taylor A19 | University of Sydney NSW, 2006
T +61 2 9351 8990
E arman.abrahamyan@...
W www.armanaresearch.org | http://www.psych.usyd.edu.au/tmslab
For our Bits++ box in Mono++ mode, I am trying to load 14 bit LUT using the PsychImaging pipeline and PsychColourCorrection function.
Here is the abbreviated code:
----
PsychImaging('PrepareConfiguration');
PsychImaging('AddTask', 'General', 'EnableBits++Mono++Output');
PsychImaging('AddTask', 'FinalFormatting', 'DisplayColorCorrection', 'LookupTable');
[window, screenRect] = PsychImaging('OpenWindow', whichScreen, 0.5);
LUTSize = 2^14;
LUT = linspace(0, 1, LUTSize);
% A few lines here to adjust LUT values
% ….
PsychColorCorrection('SetLookupTable', window, LUT);
----
The last line above generates the following error:
------
--- ERROR
??? Error using ==> moglcore
MOGL-Error: Your OpenGL command glTexImage2D() caused the following OpenGL error: invalid value. Aborted.
Error in ==> glTexImage2D at 25
moglcore( 'glTexImage2D', target, level, internalformat, width, height, border, format, type, pixels );
Error in ==> PsychColorCorrection at 954
glTexImage2D(GL.TEXTURE_RECTANGLE_EXT, 0, internalFormat, size(clut, 1), size(clut, 2), 0, GL.LUMINANCE,
GL.FLOAT, clut);
Error in ==> CalibrateMonoPlusPlus at 139
PsychColorCorrection('SetLookupTable', window, LUT);
————
The code does work after changing the LUTsize to 2^13 or below. But values above 2^13 generate the above error.
I thought to ask here whether anyone had a similar experience, before trying different hardware configurations.
The setup:
Videocard: NVIDIA Quadro FX580 (2 GB)
Bits++ box from CRS loaded up with Mono++ firmware
Psychtoolbox ver: 3.0.8
Computer: DELL Precision T3500, 2.67 GHz, 4 GB RAM,
Monitor: BENQ P992
OS: 32-bit Windows 7
Additional info:
* The ‘SimpleGamma’ adjustment, while working, doesn’t provide the necessary correction because the luminance response function has a sigmoid shape.
* I've tested the Bits++ box in Mono++ mode using BitsPlusIdentityClutTest script and it seemed to function properly.
Thank you,
Arman
--
ARMAN ABRAHAMYAN | Postdoctoral Research Associate
School of Psychology | THE UNIVERSITY OF SYDNEY
Griffith Taylor A19 | University of Sydney NSW, 2006
T +61 2 9351 8990
E arman.abrahamyan@...
W www.armanaresearch.org | http://www.psych.usyd.edu.au/tmslab