MonochromeColorFilter: Class representing a monochrome color filter

Description Usage Arguments Details Fields and Methods Author(s) See Also

Description

Package: R.colors
Class MonochromeColorFilter

Object
~~|
~~+--ColorFilter
~~~~~~~|
~~~~~~~+--MonochromeColorFilter

Directly known subclasses:

public static class MonochromeColorFilter
extends ColorFilter

Class representing a monochrome color filter. All colors filtered through a MonochromeColorFilter will be monochrome colors.

Usage

1
MonochromeColorFilter(threshold=0.5, monocolors=c("#FFFFFF", "#000000"), coefficients=c(0.3, 0.59, 0.11))

Arguments

threshold

A numeric threshold in [0,1] specifying for where to split the first and the second monochrome color.

monocolors

A vector or a Color object containing two colors to be used as the monochrome colors. By default white and black is used.

coefficients

vector of three numeric values specifying the relative amount of the red, green and blue channel that should be used to generate the graylevels, which in turn are threshold to monochrome colors. The values are normalized such that they sum to one.

Details

Conceptually, the input colors are filtered through a grayscale color filter and then thresholded. Values below the threshold is set to the second monochrome color and values equal or above to the first.

Fields and Methods

Methods:

getColors -

Methods inherited from ColorFilter:
getColors

Methods inherited from Object:
$, $<-, [[, [[<-, as.character, attach, attachLocally, clearCache, clone, detach, equals, extend, finalize, gc, getEnvironment, getFields, getInstantiationTime, getStaticInstance, hasField, hashCode, ll, load, objectSize, print, registerFinalizer, save

Author(s)

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

See Also

GrayColorFilter.


HenrikBengtsson/R.colors documentation built on May 6, 2019, 11:53 p.m.