How do I get two images to display top and bottom of screen in Matlab/Psychtoolbox? I can already do left and right sides.
6 次查看(过去 30 天)
显示 更早的评论
Hi, I'm trying to display two images, one on the top, and one at the bottom of the screen in Psychtoolbox. I know how to do that already with the right and left sides of the screen. The code for that is below. Any advice would be appreciated!
[imageHeight,imageWidth,colorChannels]=size(ImageDataData);
gap=100;
leftRect=[xCenter-gap-imageWidth,yCenter-imageHeight/2,xCenter-gap,yCenter+imageHeight/2];
rightRect=[xCenter+gap,yCenter-imageHeight/2,xCenter+gap+imageWidth,...
yCenter+imageHeight/2];
0 个评论
采纳的回答
Thorsten
2014-11-21
编辑:Thorsten
2014-11-21
The values are the x,y coordinates of the top right coordinates of the rectangle the x,y coordinates of the bottom left coordinate of the rectangle
topRect = [xCenter-imageWidth/2, YCenter-gap-imageHeight, xCenter+imageWidth/2, Ycenter-gap];
bottomRect = [xCenter-imageWidth/2, Ycenter+gap, xCenter+imageWidth/2, Ycenter+gap+imageHeight];
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image display and manipulation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!