luminance component of an image
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi, I have a frame of a vedio sequence I which is a 288*532 double. How can I extract only the luminance component? Thanks.
0 Kommentare
Akzeptierte Antwort
Mark Sherstan
am 30 Nov. 2018
Run the following:
I = imread('test.png');
J = rgb2gray(I);
rgb2gray uses the same formual which is used to calculate luminance (to 3 decimal places the formula is):
0.299 * R + 0.587 * G + 0.114 * B
4 Kommentare
Weitere Antworten (3)
az
am 30 Nov. 2018
1 Kommentar
Image Analyst
am 30 Nov. 2018
Bearbeitet: Image Analyst
am 30 Nov. 2018
Just attach the one frame, not the entire video. One frame will certainly be small enough to attach!
And explain why using rgb2gray() on the RGB image did not work.
Siehe auch
Kategorien
Mehr zu Read, Write, and Modify Image 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!