필터 지우기
필터 지우기

immovie

조회 수: 3 (최근 30일)
Pan
Pan 2012년 4월 30일
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
Walter Roberson
Walter Roberson 2012년 4월 30일
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.)

댓글을 달려면 로그인하십시오.

채택된 답변

Image Analyst
Image Analyst 2012년 4월 30일
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
Walter Roberson
Walter Roberson 2012년 4월 30일
The map _is_ needed if the original data is indexed images.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Automated Driving Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by