Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/computeStatisticalQuantitiesTile.R
A function to compute the relevant statistical quantities (only the median value is implemented) of the RGB colors for the entire image. Optionally it can also compute the median values of the RGB colors at the Left, UpperLeft, Upper, UpperRight, Right, LowerRight, Lower, and LowerLeft, corners of the image.
1 | computeStatisticalQuantitiesTile(img, useGradients = FALSE)
|
img |
An image array (as created by the readJPEG function from the jpeg library). |
useGradients |
A flag indicating if the values of the relevant quantities should be calculated in the corners of the image. |
The data is defined as the median RGB colors of the tile images at this version. Optionally, the median RGB values of the tile image corners are also calculated.
An array with the relevant quantities calculated.
Alberto Krone-Martins
readJPEG
, computeStatisticalQuantitiesPixel
1 2 3 4 | # Read the R logo and output its values in the parameter space
library('jpeg')
logo <- readJPEG(system.file("img", "Rlogo.jpg", package="jpeg")) # Read the R logo
computeStatisticalQuantitiesTile(logo) # Compute the quantities
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.