Azzera filtri
Azzera filtri

immovie

3 visualizzazioni (ultimi 30 giorni)
Pan
Pan il 30 Apr 2012
how to use "immovie" In the code
load can % can.avi
mov=immovie(330,map);
[m,n,c,f]=size(xz);
run it, matlab show that
??? Undefined function or variable 'map'.
Error in ==> canentropy at 3
mov=immovie(330,map);
how to I do
  1 Commento
Walter Roberson
Walter Roberson il 30 Apr 2012
The first parameter to immovie() must be an array of movie data. When you use the constant 330 there, you are implicitly asking for a single frame movie that is 1 pixel by 1 pixel of a color whose map index value is 330 (which would require that the map you pass in have at least 330 rows.)

Accedi per commentare.

Risposta accettata

Image Analyst
Image Analyst il 30 Apr 2012
Well, did you define map? If not, try just deleting it from the arg list and seeing if that runs. map is a colormap, for example
map=gray(256);
I bet you don't need it or want it.
  1 Commento
Walter Roberson
Walter Roberson il 30 Apr 2012
The map _is_ needed if the original data is indexed images.

Accedi per commentare.

Più risposte (0)

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by