How can I display a figure in the entrire screen of a second monitor without toolbars/whitespace/greyspace around it?
I am trying to project various different sine waves onto a scene using a projector in order to obtain depth information. My current method involves a projector currently acting as my second monitor connected through display port. I’m then trying to fit a figure of the sinewaves to the monitor such that there is nothing around the edges, just the sinewave pattern. The code I have been trying is this:
time = 1:0.001:2;
frequency = 60;
phase = 90;
phase_in_rad = degtorad(phase); %Ignore these for the time being
y=0.5*cos((2*pi*frequency*time)+(2*pi/3));
plot(time,y);
print(‘SineWaveImage’,’-djpeg’);
fig1 = figure;
imshow(imread(‘SineWaveImage.jpg’));
pos_fig1 = [0 0 1900 2000];
set(fig1,’Position’,pos_fig1,’ToolBar’,’none’,’MenuBar’,’none’)
I have been attempting to change pos_fig1 so that the projector projects only the sinewaves and no grey/white space. I’ve also tried a function that cuts a lot of the white space successfully, but still suffers from the grey space when it is put back into a figure.
Is there a better way of writing this code, or any other methods of achieving this? Thanks for any helpI am trying to project various different sine waves onto a scene using a projector in order to obtain depth information. My current method involves a projector currently acting as my second monitor connected through display port. I’m then trying to fit a figure of the sinewaves to the monitor such that there is nothing around the edges, just the sinewave pattern. The code I have been trying is this:
time = 1:0.001:2;
frequency = 60;
phase = 90;
phase_in_rad = degtorad(phase); %Ignore these for the time being
y=0.5*cos((2*pi*frequency*time)+(2*pi/3));
plot(time,y);
print(‘SineWaveImage’,’-djpeg’);
fig1 = figure;
imshow(imread(‘SineWaveImage.jpg’));
pos_fig1 = [0 0 1900 2000];
set(fig1,’Position’,pos_fig1,’ToolBar’,’none’,’MenuBar’,’none’)
I have been attempting to change pos_fig1 so that the projector projects only the sinewaves and no grey/white space. I’ve also tried a function that cuts a lot of the white space successfully, but still suffers from the grey space when it is put back into a figure.
Is there a better way of writing this code, or any other methods of achieving this? Thanks for any help I am trying to project various different sine waves onto a scene using a projector in order to obtain depth information. My current method involves a projector currently acting as my second monitor connected through display port. I’m then trying to fit a figure of the sinewaves to the monitor such that there is nothing around the edges, just the sinewave pattern. The code I have been trying is this:
time = 1:0.001:2;
frequency = 60;
phase = 90;
phase_in_rad = degtorad(phase); %Ignore these for the time being
y=0.5*cos((2*pi*frequency*time)+(2*pi/3));
plot(time,y);
print(‘SineWaveImage’,’-djpeg’);
fig1 = figure;
imshow(imread(‘SineWaveImage.jpg’));
pos_fig1 = [0 0 1900 2000];
set(fig1,’Position’,pos_fig1,’ToolBar’,’none’,’MenuBar’,’none’)
I have been attempting to change pos_fig1 so that the projector projects only the sinewaves and no grey/white space. I’ve also tried a function that cuts a lot of the white space successfully, but still suffers from the grey space when it is put back into a figure.
Is there a better way of writing this code, or any other methods of achieving this? Thanks for any help digital image processing, signal processing MATLAB Answers — New Questions