luminance component of an image
5 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
Mark Sherstan
2018 年 11 月 30 日
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 件のコメント
その他の回答 (3 件)
az
2018 年 11 月 30 日
1 件のコメント
Image Analyst
2018 年 11 月 30 日
編集済み: Image Analyst
2018 年 11 月 30 日
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.
参考
カテゴリ
Help Center および File Exchange で Read, Write, and Modify Image についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!