Last active
May 14, 2022 17:08
-
-
Save aldajo92/83712acbdb70e314c07c9a36af0e5dfe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clear | |
I = imread("imagen.jpg"); | |
G = rgb2gray(I); | |
GD = im2double(G); | |
[ni,mi] = size(G) | |
A = zeros(size(G)); | |
for n=1:50 | |
for i=1:ni | |
for j=1:mi | |
A(i,j) = ((i+j)/(i*j))-((i+j)/(i*j)*power((n+100)/(n),2)); | |
end | |
end | |
pause(1) | |
imshow(GD+A) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment