RGB to night vision

16 views (last 30 days)
Badboy
Badboy on 22 Jul 2020
Commented: Rena Berman on 12 Oct 2020
How to create night vision image using MATLAB ....didn't recognize the formula... some one explain to me
  5 Comments
Walter Roberson
Walter Roberson on 23 Jul 2020
Do not completely change existing questions; start new questions instead.
Rena Berman
Rena Berman on 12 Oct 2020
(Answers Dev) Restored edit

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 23 Jul 2020
RGB = imread('baby.jpg');
RGBd = im2double(RGB);
G = RGBd(:,:,2);
OutputR = G/2;
OutputB = 2 * OutputR;
OutputG = 2 * OutputB;
Nightvision = im2uint8( cat(3, OutputR, OutputG, OutputB) );
montage({RGB, Nightvision})
  1 Comment
Walter Roberson
Walter Roberson on 23 Jul 2020
That is a different Question that has nothing to do with nightvision .

Sign in to comment.

More Answers (0)

Categories

Find more on Convert Image Type in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!