when i read the video ex- vid = read(obj); then in vid we get the 4-D uint8..then 4d means(h,w,b,f) is or not..

4 件のコメント

Image Analyst
Image Analyst 2015 年 6 月 6 日
I do not know what "then 4d means(h,w,b,f) is or not.." means. Please explain. With read() you can read a frame from a video, or the whole video, which would be a 4D array if you had a color video.
asmi
asmi 2015 年 6 月 8 日
Is is a whole video not frame..
Walter Roberson
Walter Roberson 2015 年 6 月 8 日
Each frame of a video is represented by a 3D array -- height, width, and color channel (R, G, B). You can store multiple frames in the same array by using the 4th dimension, making the array height, width, channel, frames
IM(13,5,2,14)
is frame 14, channel 2 (Green), pixel row 13, pixel column 5.
asmi
asmi 2015 年 6 月 8 日
Thanx Walter Roberson..

サインインしてコメントする。

 採用された回答

Walter Roberson
Walter Roberson 2015 年 6 月 6 日

0 投票

Height, Width, Color Plane, Frame Number, where Color Plane is in the order Red, Green, Blue

その他の回答 (0 件)

質問済み:

2015 年 6 月 6 日

コメント済み:

2015 年 6 月 8 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by