%result = createGaussianWeightingForFeatureSample()
%
% Computes a Gaussian weighting matrix for use in computing the 
% features (descriptors).  It uses the standard SIFT size of 
% 4x4 pixel bins and 4x4 bins to create a 16x16 weighted sample window.
%
% This weight should not be used when computing the feature orientation.

% Author: Josiah Yoder
% Term: Summer 2014
% Course: CS498 - Computer Vision
% Assignment: Lab 4 - SIFT feature description

function result = createGaussianWeightingForFeatureSample()
    binSize = 4;
    numBins = 4;
    
    maxOffset = binSize*numBins/2-0.5;
    range = -maxOffset:maxOffset;

    oneSide = pdf('norm',(range),0,range(end));
    result = oneSide' * oneSide;
end
