title: MATLAB create movie from 16 bit images
body: <p>I have a simple MATLAB sequence which is intended to create an AVI movie from a collection of uint16 images:</p>
  
  <pre><code>video = VideoWriter( vidName );
  video.FrameRate = ( frmRate );
  open( video );
  for i=1:size
      img = imread( picNames(i).name );
      writeVideo( video, img );
  end
  close( video );
  </code></pre>
  
  <p>This produces the error <code>IMG must be one of the following classes: double, single, uint8</code>. Any ideas as to how I might get around this without loss of precision or adding compression? </p>