ilply: Split an image along axis, apply function, return a list

View source: R/splitcombine.R

ilplyR Documentation

Split an image along axis, apply function, return a list

Description

Shorthand for imsplit followed by purrr::map

Usage

ilply(im, axis, fun, ...)

Arguments

im

image

axis

axis for the split (e.g "c")

fun

function to apply

...

extra arguments for function fun

Examples


parrots <- load.example("parrots")
ilply(parrots,"c",mean) #mean luminance per colour channel

imager documentation built on May 29, 2024, 1:38 a.m.