Learn R Programming

patternize (version 0.0.5)

redRes: Reduce the resolution of an image imported as a RasterStack by downsampling.

Description

Reduce the resolution of an image imported as a RasterStack by downsampling.

Usage

redRes(image, resampleFactor)

Value

Downsampled RasterStack

Arguments

image

RasterStack for downsampling.

resampleFactor

Integer for downsampling.

Examples

Run this code
image <- raster::stack(system.file("extdata", "BC0077.jpg", package = "patternize"))
image_reduced <- redRes(image, 5)

Run the code above in your browser using DataLab