Skip to content
Snippets Groups Projects
Commit bec13b84 authored by Thomas Lien's avatar Thomas Lien
Browse files

#3 added edgemap

parent eb56a122
No related branches found
No related tags found
No related merge requests found
Test.m 0 → 100644
%% Example Title
% Let's use Edvard Munch's - skrik picture
image = imread("colorHistogram/Edvard_Munch_-_Despair_(1894).jpg");
% Let's also display the picture to see how it originally looks
%imshow(image);
%% edgeMap - Test of implementation
edgeImage = edgeMap(image);
imshow(edgeImage);
%% Section 2 Title
% Description of second code block
b = 2;
%Returns an edge map for RGB images
function edgeMap = edgeMap(image)
%Convert image to greyscale
greyImage = rgb2gray(image);
%Use inbuilt edge function
edgeMap = edge(greyImage);
end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment