Last active
January 22, 2020 00:02
-
-
Save zbrasseaux/37802488eedcfc366547aa5b7b1bb694 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
function [A,B] = hw2_05 | |
% read in csv | |
matrix_input = csvread('hw2_05.csv'); | |
% before histogram | |
A = histogram(matrix_input); | |
% provided filter | |
filter = [-1,2,-1]; | |
% apply the filter to the image | |
matrix_input_post = conv2(matrix_input, filter, 'same'); | |
% after histogram | |
B = histogram(matrix_input_post); | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment