arrayLowReso: Reduce resolution of image

View source: R/arrayLowReso.R

arrayLowResoR Documentation

Reduce resolution of image

Description

Reduce resolution of image

Usage

arrayLowReso(A, pixel, func)

Arguments

A

an array

pixel

a vector determining how much pixels of initial image one pixel of the output image contains; such as c(2, 2, 2) for a 3D array A

func

the operation executed to get the output image; such as mean or max

Value

an array with dim = ceiling(dim(A)/pixel)

Examples

A = array(1:27, c(3, 3, 3))
pixel = c(2, 2, 2)
B = arrayLowReso(A, pixel, mean)


MengtaoWen/SLIP documentation built on May 3, 2022, 6:45 a.m.