Skip to content

Commit

Permalink
The vector keeping track of the edges should equal the size of the im…
Browse files Browse the repository at this point in the history
…age.
  • Loading branch information
JustinLiang committed Mar 20, 2016
1 parent 2ee7c12 commit 395a0e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CannyEdgeDetector/CannyEdgeDetector.m
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ function CannyEdgeDetector()
% Perform double thresholding
highThreshold = max(max(Gmag))*highThresholdRatio;
lowThreshold = highThreshold*lowThresholdRatio;
strongEdgesRow = zeros(1,h); % Keep track of the strong edge row index
strongEdgesCol = zeros(1,w); % Keep track of the strong edge col index
weakEdgesRow = zeros(1,h); % Keep track of the weak edge row index
weakEdgesCol = zeros(1,w); % Keep track of the weak edge col index
strongEdgesRow = zeros(1,h*w); % Keep track of the strong edge row index
strongEdgesCol = zeros(1,h*w); % Keep track of the strong edge col index
weakEdgesRow = zeros(1,h*w); % Keep track of the weak edge row index
weakEdgesCol = zeros(1,h*w); % Keep track of the weak edge col index
strongIndex = 1;
weakIndex = 1;
for i=2:h-1 % row
Expand Down

0 comments on commit 395a0e4

Please sign in to comment.