How to transfer this into matlab code
이전 댓글 표시
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
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Image Filtering에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!