computeStatisticalQuantitiesTile: A function to compute the tile data in a certain parameter...

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/computeStatisticalQuantitiesTile.R

Description

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.

Usage

1

Arguments

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.

Details

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.

Value

An array with the relevant quantities calculated.

Author(s)

Alberto Krone-Martins

See Also

readJPEG, computeStatisticalQuantitiesPixel

Examples

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

RsimMosaic documentation built on May 2, 2019, 7:29 a.m.