-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented difference of gaussian algorithm.
- Loading branch information
1 parent
5e9a7d5
commit adc7840
Showing
4 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
% This function computes the difference in gaussian and outputs a new pyramid | ||
function gaussianPyramid = ComputeDifferenceOfGaussian(pyramid) | ||
if isempty(pyramid) | ||
return | ||
end | ||
|
||
gaussianPyramid = {}; % Initialize difference of gaussian cell array | ||
|
||
for i=1:size(pyramid,2) % Iterate through the octaves | ||
for j=1:size(pyramid{1},2)-1 % Iterate through the scales | ||
gaussianPyramid{i}{j} = pyramid{i}{j} - pyramid{i; | ||
end | ||
end | ||
end |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
% This function computes the difference in gaussian and outputs a new pyramid | ||
function gaussianPyramid = ComputeDifferenceOfGaussian(pyramid) | ||
if isempty(pyramid) | ||
return | ||
end | ||
|
||
gaussianPyramid = {}; % Initialize difference of gaussian cell array | ||
|
||
for i=1:size(pyramid,2) % Iterate through the octaves | ||
for j=1:size(pyramid{1},2)-1 % Iterate through the scales | ||
gaussianPyramid{i}{j} = pyramid{i}{j+1} - pyramid{i}{j}; | ||
end | ||
end | ||
end |
This file contains 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
This file contains 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