You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a issue in blurpart.R file, where matrix indexing is wrong and a variable name is wrong. Here is the correct code
blurpart <- function(img,rows,cols,q){
lrows <- length(rows)
ncols <- length(cols)
newimg <- img
randomnoise <- matrix(nrow=lrows, ncol=ncols,runif(lrows*lcols))
newimg@grey[rows,cols] <- (1-q) * img@grey[rows,cols] + q * randomnoise
return(newimg)
}
If you allow me to raise a PR, I can do that.
btw thanks for this book, I am really enjoying learning R from this book.
The text was updated successfully, but these errors were encountered:
There is a issue in blurpart.R file, where matrix indexing is wrong and a variable name is wrong. Here is the correct code
blurpart <- function(img,rows,cols,q){
lrows <- length(rows)
ncols <- length(cols)
newimg <- img
randomnoise <- matrix(nrow=lrows, ncol=ncols,runif(lrows*lcols))
newimg@grey[rows,cols] <- (1-q) * img@grey[rows,cols] + q * randomnoise
return(newimg)
}
If you allow me to raise a PR, I can do that.
btw thanks for this book, I am really enjoying learning R from this book.
The text was updated successfully, but these errors were encountered: