for i = 1:256for j = 1:256R(i,j) = j-1;endendcolormap(gray(256));I = zeros(256,256);for i=1:256 for j=1:256 dist = sqrt((i-128)^2 +(j-128)^2); if(dist<80) I(i,j) = 255; else I(i,j) = 0; end endendcolormap(gray(256))for i=1:256for j=1:256G(i,j)= R(i,j).*I(i,j)/255; %HERE
endendcolormap(gray(256));axis('image');image(G)
MATLAB: How does the the division of image by 255 work and multiplication of one image with another? Need help understanding the bold part of the code. This code is complete and can run in MATLAB.
digital image processinggraded circlehow to make a graded circleimage processing
Best Answer