Skip to content

Instantly share code, notes, and snippets.

@yusufcakal
Created January 8, 2018 09:48
Show Gist options
  • Save yusufcakal/43fe73059fea13e4f5eb758cd76e8086 to your computer and use it in GitHub Desktop.
Save yusufcakal/43fe73059fea13e4f5eb758cd76e8086 to your computer and use it in GitHub Desktop.
Max
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