clc;
close all;
clear all;
% assigning the name of sample avi file to a variable
filename = 'rhinos.avi';
close all;
clear all;
% assigning the name of sample avi file to a variable
filename = 'rhinos.avi';
I = imread('cameraman.tif');
[X, map] = gray2ind(I, 16);
imshow(X, map);
Convert indexed image to grayscale image