image thresholding
Details
This function applies thresholding to a matrix or to a 3-dimensional array where the third dimension is equal to 3.
Examples
path = system.file("tmp_images", "1.png", package = "OpenImageR")
image = readImage(path)
filt = image_thresholding(image, thresh = 0.5)