R/sharpen.R
sharpen.Rd
Detects and enhances the edges in the image and returns a sharpened and monotoned version (the same size as the original).
sharpen(img)
array input image
array sharpened monotone image
old_img <- array(rep(c(0.5), 100 * 100 * 3), dim = c(100, 100, 3)) new_img <- sharpen(old_img)