2
현재 저는 웹캠 프로젝트를위한 matlab을 사용하고 있습니다. 여기 내 코드 :웹캠의 컬러 맵 비디오 캡처
vid = videoinput('winvideo');
vidRes = get(vid, 'VideoResolution');
nBands = get(vid, 'NumberOfBands');
hImage = image(zeros(vidRes(2), vidRes(1), nBands));
preview(vid, hImage);
colormap cool;
비디오가 웹캠에 그대로 표시되었습니다. 그러나 colormap cool;
은 동영상에 아무런 영향을 미치지 않습니다. 나는 더미 imag에 의하여 영상을 대체하는 것을 시도하고 colormap cool;
가 효력을 나타낸다.
내 비디오의 색상 맵을 제어 할 수있는 방법이 있습니까?
대단히 감사합니다. 고맙게 생각합니다. 다중 채널의 조합으로 단일 채널을 생성하기위한 샘플 코드를 요청해도 괜찮습니까? – dmfrl
@dmfrl : http://stackoverflow.com/questions/3547029/how-do-i-display-the-red-channel-of-an-image-in-matlab 또는 http://www.mathworks.com/ matlabcentral/newsreader/view_thread/283668 – slayton
대단히 감사합니다. – dmfrl