Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/r_image_functions.R
gleam
will take an input image and "gleam" it. Gleam is one of
many algorithms to to a color image greyscale. The gleam algorithm has been
shown to be particularly effective in computer vision for detecting faces
and objects. See Details for more information.
1 |
image |
Full path to the input image to be gleamed. |
tau |
Integer. The gamma-correction value. Each channel (RGB) in the |
show |
Logical. Display the image after computing? Defaults to |
This function uses EBImage
to read in the image, extract the RGB colorspace,
and then compute the gray values from the gleam algorithm.
The gleam algorithm can be formally stated as:
Gleam = 1/3(R' + G' + B')
Where R', G', and B' are the gamma-corrected color channels.
Returns a a two-dimenstional array of gamma-corrected intensity
pixel values equal to the width and height of the original image
.
Daniel N. Albohn
See http://journals.plos.org/plosone/article?id=10.1371/journal.pone.0029740 for detailed information on the benefits of using certain grayscale algorithms over others.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.