Prev: Object Tracking
Next: Open a netcdf file (.nc)
From: Kevin on 28 Feb 2010 14:37 I am sure this has been asked many times but am not able to figure it out. Basically am trying to convert my '.avi' videos into greyscale or black and white. Here is my code: vidTest=textread('.\test_input\list_test.txt','%s'); for x=1:length(vidTest) video_obj=mmreader(['.\test_in\',vidTest{x}]); frames = read(video_obj); video_obj = rgb2gray(video_obj); no_frames = video_obj.NumberOfFrames; frames_width = video_obj.Width; frames_height = video_obj.Height; end Please advice Thanks
From: Kevin on 28 Feb 2010 20:30 Anybody? Just want to know how to convert each frames into grayscale?!?! Thanks
|
Pages: 1 Prev: Object Tracking Next: Open a netcdf file (.nc) |