Matlab code for formula of RGB image to Blue Ratio image conversion
Show older comments
Hello i want matlab code for the formula of RGB image to Blue Ratio image. Formula is :
100*B/1+R+G * 256/1+R+G+B

i use the following code...Kindly check is there any problem in it.
img=imread('image.jpg');
R= img(:,:,1);
G=img(:,:,2);
B=img(:,:,3);
img_BlueRation=((100 * B)./(1+R+G)) .* (256./(1+B+R+G));
Regards
Accepted Answer
More Answers (0)
Categories
Find more on Images 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!