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

View source: R/redRes.R

redResR Documentation

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)

Arguments

image

RasterStack for downsampling.

resampleFactor

Integer for downsampling.

Value

Downsampled RasterStack

Examples

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


patternize documentation built on Aug. 22, 2023, 5:07 p.m.