Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %% Bildkontrast
- % 3.
- function contrast = imageContrast(image)
- % 3.a)
- image = image(:);
- % 3.b)
- image = double(image);
- % 3.c)
- meanGreyValue = sum(image) / numel(image);
- % 3.d)
- contrast = sum(image .* image) / numel(image);
- contrast = contrast - (meanGreyValue * meanGreyValue);
- end
Advertisement
Add Comment
Please, Sign In to add comment