Learn R Programming

OpenImageR (version 1.0.8)

image_thresholding: image thresholding

Description

image thresholding

Usage

image_thresholding(image, thresh)

Arguments

image

matrix or 3-dimensional array

thresh

the threshold parameter should be between 0 and 1 if the data is normalized or between 0-255 otherwise

Value

a matrix

Details

This function applies thresholding to a matrix or to a 3-dimensional array.

Examples

Run this code
# NOT RUN {
path = system.file("tmp_images", "1.png", package = "OpenImageR")

image = readImage(path)

filt = image_thresholding(image, thresh = 0.5)

# }

Run the code above in your browser using DataLab