Effacer les filtres
Effacer les filtres

color video

1 vue (au cours des 30 derniers jours)
Pan
Pan le 4 Mar 2012
Hi, I can't run it. Could you check it where error. Thank you!! The video is color and it 4-D unit8
clear all;
%obj1 = mmreader('can.avi');
%vid1 = read(obj1);
xx = zeros([128 128 1 207],'uint8');
for frame=1:207
[xx(:,:,:,frame),map] = imshow('can.avi',frame);
end
save can xx

Réponse acceptée

Image Analyst
Image Analyst le 4 Mar 2012
I'm not sure what you want to do but whatever you're doing is weird. imshow() returns a handle to an axes, not an image and a colormap - maybe you got it confused with read(). But read() would be used with VideoReader(), not mmreader I think. Anyway mmreader is deprecated so you should follow the examples for VideoReader and VideoWriter instead. Use VideoReader or imwrite to handle imagery, not save.

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by