QT Color Movies

Hi

I've been trying to make a simple color movie from a MxNx3xF
array/matrix from Matlab, but I keep getting:

??? imageArray must be MxNxF or MxNx3xF array. Usage:

QT('VideoMediaSamplesAdd',movie,imageArray,pixelSize,frame
Duration,isRGB)

I've verified that I'm using a 4D array And I am able to make
grayscale "M x N x F" movies.

I not that QTDem.m & QTTest.m demos do not make color
movies.

Is it possible to make a color movie from Matlab using QT.mex?

Jeff, The Salk Institute
> Is it possible to make a color movie from Matlab using QT.mex?
>
> Jeff, The Salk Institute

Hi Jeff,

I'm not sure, but perhaps your problem is that you're not setting isRGB to
1? The demos don't give any value for this parameter, and the default
seems to be to assume non-RGB. So:

This works:
QT('VideoMediaSamplesAdd', movie, MyColorMovie, bits, frameDuration, 1);
^^^
This doesn't:
QT('VideoMediaSamplesAdd', movie, MyColorMovie, bits, frameDuration);

I just tested it with a simple dynamic chromatic noise movie

MyColorMovie = rand(100,100, 3, 50);

and it worked.

Hope this helps,
Charles.

----------------------------------------------------------------------
Dr. Charles A. Collin,
Psychology Department,
Dalhousie University,
Halifax, NS. Canada.
B3H 4J1

Phone: 902-494-7025
Fax : 902-494-6585