This is my current code:
function out = luminance(current_img ) R=current_img(:,:,1); G=current_img(:,:,2); B=current_img(:,:,3); I=.299*R + 0.587*G+0.114*B; out=I; end
I'm trying to make my image grayscale but that's not what's happening, what am I doing wrong?
Best Answer