I have an avi-video file I would like to represent a frame as 3 matrix from this video (because color 3 The number is the parameter ([red, green, blue] or [color, saturation, value] or something else.)
At this time I have this code:
VideoObject = mmreader (fname); ImageData = Read (Video Object, [1 5]) So far, as I think I remove 5 frames before the video. L Qin I do not understand what format is given as imageData . For example, how can I get the green component 17 < / Strong> and the third pixel color by frame
Anyone, please help me with it on the column number 32 ? >
As far as I think it can be done in the following way, a special frame like this Arriving from Can:
Take% frame number 7: imageData = read (videoObject, 7); Now if we want to know what t, we need to read the green, blue component of pixels in line 1, and line 2:
Imphis (Image data, 1,2) This will return number 3 (pixel-colored RGB component).
Comments
Post a Comment