%% lab2
%
% Name: _______
% Date: _______
% Quarter: Winter 2014-2015

%
% PLEASE DELETE STEPS 1-4 below if you paste in steps 1-4 from your lab1.m
% Otherwise, fill them in again.
%
% You may delete this comment if you wish.
%

%% 1. Load an image and display it.


%% 2. Look at an interesting point on your image.
%% 2.a.  ginput.  Get the indices of the interest point.


%% 2.b.  Automatically write j and i values instead of calling ginput.
%     Display a chunk of the image around j and i
%     Include a small chunk of your image here in a comment.
%     Write a comment describing what you learned from looking at the 
%     raw values in the image.


%% 3. Convert the image to gray-scale


%% 4. Blur the image
%  Also, in a comment, answer the questions below.


%%  4.a. It important for the sum of the blurring filter to be 1.
%   What happens if the filter values are not 1?


%%  4.b. Considering how imfilter is implemented, how do filter
%     values that sum to 1 avoid the problems you described in
%     part a?


%% 5. Find edges in the image and create the images m and theta.
% Also, in a comment, answer the questions below.

%% 5.a. It is important for the sum of the elements in the
% derivative filter to be zero. What happens if the filter values
% are not 0?


%% 5.b. Considering how imfilter is implemented, how does a filter
%     value that sums to 0 avoid the problems you described in 
%     part a?


%% 6. Histograms
%% 6.a. Creating a histogram of image intensities.


%% 6.b. Creating a histogram of edge directions
%
%  Also, include your 8-bin histogram result.  If you use a different
%  arrangment of bins than the figure, explain that in a comment, too.
