Hii! It is my understanding that you want to create a video from all the images stored in a directory.
It is not possible to adjust the height of the video because the “height” property of “VideoWriter” is read-only. The “writeVideo” method sets values for Height and Width based on the dimensions of the first frame.
So, the possible solution for this will be to resize the image before writing it to the video object.
Refer to the following for resizing an image.
To change the colormap use the “Colormap” property of the “VideoWriter”, but the Colormap property only applies to objects used for writing indexed AVI files. The value of “colormap” needs to be specified as a numeric matrix with three columns and a maximum of 256 rows. Each row in the matrix defines one color using an RGB triplet. An RGB triplet is a three-element row vector whose elements specify the intensities of the red, green, and blue components of the color. The intensities must be in the range [0,1].
For example,
video = VideoWriter('video.avi', 'Indexed AVI');
video.Colormap = colormap(hot(256));
For more details on the properties of “VideoWriter” refer to the following,
Hope this helps.