How to transfer this into matlab code
Show older comments
Hello
I need to transfer this code to matlab to use it to get the Normalized red/Grren/Blue index of image
VI=np.zeros((img.shape[0], img.shape[1], 20))
RGB_sum=np.sum(img, axis=2)
R=img[:,:,2]
G=img[:,:,1]
B=img[:,:,0]
rn=R/RGB_sum
gn=G/RGB_sum
bn=B/RGB_sum
Accepted Answer
More Answers (0)
Categories
Find more on Image Filtering 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!