as.MonochromeImage.GrayImage {R.image}R Documentation

Converts a grayscale image to a monochrome image

Description

Converts a grayscale image to a monochrome image where values above a threshold is considered to be white and the others black.

Usage

## S3 method for class 'GrayImage':
as.MonochromeImage(this, threshold=2^depth(this)/2, ...)

Arguments

threshold Pixels with grayscale value above the threshold value are interpreted as white and the others as black. Default threshold is half the possible maximal value.
... Not used.

Value

Returns a MonochromeImage object.

Author(s)

Henrik Bengtsson (http://www.braju.com/R/)

See Also

For more information see GrayImage.


[Package R.image version 0.2.3 Index]