Hi Paul,
We noticed that we provided you with an earlier version of our stimulus code that has a bug. I’ve attached the code that should be implemented instead
The code that Mark gave me (in for-chris-181002.zip
) is identical to what you attached, so this is already what I’ve implemented.
We also noticed a potential issue with the contrast.
Yes, I see what you mean. The issue is that the alpha_multiplier
parameter of MWorks’ stimuli only behaves like a contrast setting when the stimulus is drawn directly on top of a 50% gray background. When the stimulus is part of a layer that’s drawn on top of a 50% gray background, the blending works out differently. (Specifically, the stimulus is first blended with the layer’s background, whose red, green, blue, and alpha color components are all zero. Then, the layer is blended with the content under it.)
Luckily, there’s a simple fix: In the noise’s layer, draw a 50% gray rectangle directly beneath the noise. I’ve attached a demo experiment that shows two oriented noise stimuli, both with an alpha of 0.5. The one on the right has a 50% gray rectangle under it, while the one on the left does not. When run, the left stimulus looks like the alpha 0.5 image you sent (i.e. too dark), while the right one looks like it maintains the correct mean luminance.
Just a small edit for ease of use - can we have the stimulus orientation parameter input changed from radians to degrees?
Sure. You mean theta_0
, right? Do you also want sigma_theta
to be in degrees, or should that stay in radians?
Last, and slightly unrelated, do you have a status update on converting our current hold-and-detect experiment to .mwel?
Sorry, but I failed to grab a copy before Mark removed my access to the repository. If you can add me again, I’ll clone a copy for myself. Or, if you want to email me a tarball of the source, that’d be fine.
Cheers,
Chris