Permalink
Browse files

make sift_sampler local

  • Loading branch information...
1 parent 54f74f8 commit 045c88152ab3dcc2743d92c13070e6f5e5fb45f6 @koraykv committed Feb 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 sift.lua
View
2 sift.lua
@@ -8,7 +8,7 @@ end
-- patch_size is the region over which the SIFT feature is computed
-- grid_spacing is the step size between each patch
-- num_bins is the
-function sift_sampler(io,patch_size,grid_spacing,num_bins)
+local function sift_sampler(io,patch_size,grid_spacing,num_bins)
local num_angles = io:size(1)
local binstep = math.floor(patch_size/num_bins)
local nr,nor = csize(io:size(2),patch_size,grid_spacing)

0 comments on commit 045c881

Please sign in to comment.