Skip to content
Browse files

fixed imgaussiannoise

  • Loading branch information...
1 parent 9b9687f commit 3c88736c2f1b72d35219beada3cd91d47689ed9a @stefan-k stefan-k committed Mar 10, 2012
Showing with 0 additions and 1 deletion.
  1. +0 −1 examples/image.jl
View
1 examples/image.jl
@@ -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.
Something went wrong with that request. Please try again.