필터 지우기
필터 지우기

Resize image generated afer reading a video

조회 수: 1 (최근 30일)
Amine Bohi
Amine Bohi 2014년 4월 7일
답변: Amine Bohi 2014년 4월 8일
Hello, I load a video in read mode on a matlab axis, I can resize it, but I can not resize the image generated by this video on the same axis
system(['Detection\detectHello.exe Detection\haarman.xml Detection\haarechelle.xml ' filename]);
pause(2);
xyloObj = VideoReader(filename);
nFrames = xyloObj.NumberOfFrames;
vidHeight = xyloObj.Height;
vidWidth = xyloObj.Width;
mov(1:nFrames) = ...
struct('cdata', zeros(vidHeight, vidWidth, 3, 'uint8'),...
'colormap', []);
for k = 1 : nFrames
mov(k).cdata = imresize(read(xyloObj, k),0.55,'nearest');
end
imag3 = imresize(imread('Image_finale.jpeg'), 0.55);
axes(findobj('tag','ima3'));
movie(mov, 1,xyloObj.FrameRate);
imshow(imag3);
Thanks

답변 (1개)

Amine Bohi
Amine Bohi 2014년 4월 8일
Hello everybody, Can you help me please?

Community Treasure Hunt

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

Start Hunting!

Translated by