% Example : avi2BMPshow('movie.avi')
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

function [noOfFrameImages] = avi2BMPshow(aviFileName)
movieObj = aviread(aviFileName);
noOfFrameImages = size(movieObj,2);


for count=1:1:noOfFrameImages 
    image=movieObj(count).cdata; %here we extract bmp images
    imshow(image);   %here we display bmp images
end
return;