I am doing a project using structured light, I need image to be showed in 'full screen mode', how?

1 回表示 (過去 30 日間)
I searched in the web.All answers can not work.Only this works "The Psychophysics Toolbox" Is there a simple solution in native matlab? My matlab version 7.10.0.
  1 件のコメント
Ayush singhal
Ayush singhal 2021 年 5 月 21 日
I have a doubt regarding the same project.How can I shift in the stripe patterns.
I am using this below code to make stripe pattern. Now I would like shifted stripes on the plane.
% stripe pattern
hold on
screenWidth = 400
screenHeight =500
stripeWidth = 10; % Pixels
oneCycle = repelem([0,1], stripeWidth);
% Make vertical stripes.
numStripes = floor(screenWidth / ( 2*stripeWidth))
multipleCycles = uint8(255 * repmat(oneCycle, [500, numStripes]));
cmap = [1 1 1; 0 0 0];
S= imrotate(multipleCycles,-30);
G = imshow(S, [], 'ColorMap', cmap)
axis on
Any lead would be helpful.

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

採用された回答

Grzegorz Knor
Grzegorz Knor 2013 年 5 月 9 日

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImages についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by