Does anyone have any experience with luminance changes in a visual display?

8 ビュー (過去 30 日間)
Adam Vilanova-Goldstein
Adam Vilanova-Goldstein 2020 年 12 月 13 日
コメント済み: Image Analyst 2020 年 12 月 15 日
I am a visual cognitive psychologist and I use Matlab and PsychToolBox for some visual search experiments. I am attempting to change the luminance of black stimuli at random intervals. I have considered using a grey as the baseline and then changing the color to make it darker or lighter randomly but have been unable to get the color to change. Any suggestions on how I should think about this?
  1 件のコメント
Image Analyst
Image Analyst 2020 年 12 月 14 日
When you mean "color" you mean the brightness (intensity) of a gray scale image, right? Not the color like a non-gray/tinted RGB image?
Also, when you say "random intervals" do you mean intervals of gray level, or time intervals?

サインインしてコメントする。

回答 (2 件)

Matt Gaidica
Matt Gaidica 2020 年 12 月 13 日
'Value' is, I believe, the same as 'luminance' in your case. If so, you could create images based on HSV values and change the value variable dynamically.
h = zeros(200,200);
s = zeros(200,200);
v = ones(200,200);
RGB1 = hsv2rgb(h,s,v*0.3);
RGB2 = hsv2rgb(h,s,v*0.5);
RGB3 = hsv2rgb(h,s,v*0.8);
close all
montage({RGB1,RGB2,RGB3},'Size',[1,3]);
  6 件のコメント
Matt Gaidica
Matt Gaidica 2020 年 12 月 15 日
編集済み: Matt Gaidica 2020 年 12 月 15 日
LumMid = repmat(63.75, [5,3]);
LumMult = [0; 0.5;1;1.5;1.95];
multiList = LumMult .* LumMid;
if thing1
ovalColors = LumMid(1:3,:);
elseif thing2
ovalColors = multiList(randi([1,5],3,1),:);
else
% cover other cases here
end
I mean, totally agree this will need calibration, but if it's just concepting a paradigm... Could also just initialize ovalColors and cover remaining cases.
ovalColors = LumMid(1:3,:);
if thing2
ovalColors = multiList(randi([1,5],3,1),:);
else
% cover other cases here
end
Image Analyst
Image Analyst 2020 年 12 月 15 日
For super precise experiments, you might need to use a calibrated gray scale monitor like they use in radiology. Barco makes respected monitors:

サインインしてコメントする。


Image Analyst
Image Analyst 2020 年 12 月 13 日
You should probably calibrate your displays with this device:
In addition, there are ASTM guidelines for viewing (target brightesses, surround brightness, clothing, room brightness, etc.) that you may want to look at.

カテゴリ

Help Center および File ExchangeImage display and manipulation についてさらに検索

製品


リリース

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by