50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

imager (version 1.0.3)

ilply: 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

Run this code
cimg.limit.openmp()
parrots <- load.example("parrots")
ilply(parrots,"c",mean) #mean luminance per colour channel

Run the code above in your browser using DataLab