Colo alteration image acquisition GUI
Hi to everybody,
I have a GUI which must acquire images from a web cam, and show two images in two windows.
In the first axes i show the original frame, and in the second axes, i ‘d like to show the image after a short elaboration. In this second image i got problems, only if i make it show the raw ‘shot’ (see below) i got a correct output (the same as the first window), in all the other cases (as in the one reported below) i get a reddish image in false color.Even using the img2bw conversion, the image in the second windows is in the same absurd colors..
Below i report the callback text, in the OpFn I just inizialise the acquisition. Nowhere in the code is a reference to this axes, or other instructions that could be in some way related to this.
start(handles.video1);
for j=1:200
shot=getsnapshot(handles.video1);
imshow(shot);
image(shot, ‘Parent’,handles.axes1);
R = shot(:,:,1); %to show only the red channel
image(R, ‘Parent’,handles.axes2);
end
Thak you for your help
marioHi to everybody,
I have a GUI which must acquire images from a web cam, and show two images in two windows.
In the first axes i show the original frame, and in the second axes, i ‘d like to show the image after a short elaboration. In this second image i got problems, only if i make it show the raw ‘shot’ (see below) i got a correct output (the same as the first window), in all the other cases (as in the one reported below) i get a reddish image in false color.Even using the img2bw conversion, the image in the second windows is in the same absurd colors..
Below i report the callback text, in the OpFn I just inizialise the acquisition. Nowhere in the code is a reference to this axes, or other instructions that could be in some way related to this.
start(handles.video1);
for j=1:200
shot=getsnapshot(handles.video1);
imshow(shot);
image(shot, ‘Parent’,handles.axes1);
R = shot(:,:,1); %to show only the red channel
image(R, ‘Parent’,handles.axes2);
end
Thak you for your help
mario Hi to everybody,
I have a GUI which must acquire images from a web cam, and show two images in two windows.
In the first axes i show the original frame, and in the second axes, i ‘d like to show the image after a short elaboration. In this second image i got problems, only if i make it show the raw ‘shot’ (see below) i got a correct output (the same as the first window), in all the other cases (as in the one reported below) i get a reddish image in false color.Even using the img2bw conversion, the image in the second windows is in the same absurd colors..
Below i report the callback text, in the OpFn I just inizialise the acquisition. Nowhere in the code is a reference to this axes, or other instructions that could be in some way related to this.
start(handles.video1);
for j=1:200
shot=getsnapshot(handles.video1);
imshow(shot);
image(shot, ‘Parent’,handles.axes1);
R = shot(:,:,1); %to show only the red channel
image(R, ‘Parent’,handles.axes2);
end
Thak you for your help
mario image color alteration, image acquisition, image display MATLAB Answers — New Questions