Learn R Programming

RsimMosaic (version 1.0.2)

createLibraryIndexDataFrame: A function to create the tile library data frame

Description

A function to create the tile library data frame containing the data of the tiles in the parameter space, as well as the filename of the tiles.

Usage

createLibraryIndexDataFrame(path, saveLibraryIndex = FALSE, libraryFilename, useGradients = FALSE)

Arguments

path
A path indicating where the images that will compose the library are stored.
saveLibraryIndex
A flag to indicate if the library should be saved in a file.
libraryFilename
The filename to use if the user wants to store the library to a file.
useGradients
A flag indicating if the values of the data in the parameter space in the corners of the tile images should be calculated.

Value

It returns a data frame containing the filename of each tile found at the path and the median RGB values of each tile. Optionally it also includes the median RGB values of the corners of the image.

Details

The tile image data in the parameter space is calculated by computeStatisticalQuantitiesTile.

See Also

computeStatisticalQuantitiesTile

Examples

Run this code
# Creates the tile library data frame from the example tiles
my2MassTiles <- createLibraryIndexDataFrame(system.file("extdata/2Massier/", 
	package="RsimMosaic"))

Run the code above in your browser using DataLab