Help me how can identify intensity for each wavelength
1 view (last 30 days)
Show older comments
swetha Derangula
on 1 Aug 2017
Edited: swetha Derangula
on 5 Aug 2017
I have 30 RGB images, how can I identify each band intensity?
0 Comments
Accepted Answer
Ramanuja Jagannathan
on 4 Aug 2017
I believe by band intensity you mean to separate R,G,B components from the image and get individual intensities. To do that, get individual 2-D matrices from the 3-D matrix. So, if 'img' is a variable containing the color image data.
R = img(:,:,1);
G = img(:,:,2);
B = img(:,:,3);
Hope this is what you are looking for.
More Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!