Permalink
Browse files

fixed imgaussiannoise

  • Loading branch information...
stefan-k committed Mar 9, 2012
1 parent 9b9687f commit 3c88736c2f1b72d35219beada3cd91d47689ed9a
Showing with 0 additions and 1 deletion.
  1. +0 −1 examples/image.jl
View
@@ -368,7 +368,6 @@ function imthresh{T}(img::Array{T,2}, threshold::Float)
end
function imgaussiannoise{T}(img::Array{T}, variance::Number, mean::Number)
- tmp = zeros(T, size(img))
tmp = img + sqrt(variance)*randn(size(img)) + mean
return tmp
end

0 comments on commit 3c88736

Please sign in to comment.