Generate an intensity image I(x,y) and display it. by using the equation I = 0.299R 0.587G 0.114B (the NTSC standard for luminance)

1 view (last 30 days)
how to Generate an intensity image I(x,y) and display it. we should use the equation I = 0.299R + 0.587G + 0.114B (the NTSC standard for luminance)

Answers (1)

KALYAN ACHARJYA
KALYAN ACHARJYA on 26 Sep 2019
Is this?
R=randi(50,[500 500]);
G=randi(50,[500 500]);
B=randi(50,[500 500]);
R_comp=0.299*R;
G_comp=0.587*G;
B_comp=0.114*B;
result_image=cat(3,R_comp,G_comp,B_comp);
imshow(result_image);

Categories

Find more on Image Processing and Computer Vision in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!