createTiles: Tile creation from a folder of images

Description Usage Arguments Author(s) See Also Examples

View source: R/createTiles.R

Description

A very simple function to create tiles from a folder containing JPEG images. It uses bilinear interpolation (via the bilinearInterpolator function), thus note that the quality of the tiles will be sub-optimal. Thus, for high quality purposes please use another external tool providing better interpolation schemes to create your tiles (bicubic splines, sincz, ...).

Usage

1
createTiles(inPath, outPath, tileHeight = 40, verbose = TRUE)

Arguments

inPath

A path with the folder where the images are contained.

outPath

A path with the folder where the tiles will be created (if the folder does not exists, it will be created).

tileHeight

The tile height in pixels.

verbose

A boolean flag to indicate if the user wants to have screen output or not.

Author(s)

Alberto Krone-Martins

See Also

bilinearInterpolator

Examples

1
2
3
4
5
6
7
8
# Set the folder where the original images are located
pathToOriginalImages <- system.file("extdata/2Massier/", package="RsimMosaic")

# Set the folder where the tiles will be stored. It will be created if it does not exists.
pathToTileImages <- paste(tempdir(), "/myTiles/", sep="")

# Create the tiles (10 pix are used just to make this example run fast)
createTiles(pathToOriginalImages, pathToTileImages, tileHeight=10)

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