How can I use the ColorChannels function of VideoWriter in VideoReader?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Alber
am 20 Mär. 2020
Kommentiert: Alber
am 24 Mär. 2020
I am currently making a code in which an input video comes in and I need to check the number of color channels it has. The function I need is in videoWriter but I need to use it in videoReader because I am not going to create a new video.
Thank you very much in advance.
0 Kommentare
Akzeptierte Antwort
Sindhu Karri
am 23 Mär. 2020
Hii,
By using whos func youcan get the info of number of color channels
Below is an example code for it
v = VideoReader('xylophone.mp4');
frame=read(v,1);
whos frame;
Name Size Bytes Class Attributes
frame 240x320x3 230400 uint8
Where Size(2400x320x3) 3-gives the number of color channels
3-RGB
1-Grey
Refer to below link
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Computer Vision with Simulink finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!