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!