Created
January 8, 2018 09:48
-
-
Save yusufcakal/43fe73059fea13e4f5eb758cd76e8086 to your computer and use it in GitHub Desktop.
Max
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
image = imread('image.png'); | |
image = rgb2gray(image); | |
disp(max_find(image)) | |
figure; | |
imshow(image); | |
function x = max_find(image) % Max fonksiyonunu kullanmadan resim de ki en yüksek piksel değerini bulma. | |
[w,h] = size(image); | |
x = image(1,1); | |
for i=1:w | |
for j=1:h | |
if image(i,j) > x | |
x = image(i,j); | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment