r_threshold {biOps}R Documentation

Threshold an image

Description

This function thresholds an image using a given filter.

Usage

r_threshold(imgdata, thr_value)

Arguments

imgdata The image
thr_value Filter value for thresholding

Value

return an imagedata object

Note

This is the R implementation of imgThreshold.

See Also

imgThreshold

Examples

        ## Not run: 
                x <- readJpeg(system.file("samples", "violet.jpg", package="biOps"))
                y <- r_threshold(x, 80)
        
## End(Not run)

[Package biOps version 0.2.1 Index]