idply: Split an image along axis, map function, return a data.frame

View source: R/splitcombine.R

idplyR Documentation

Split an image along axis, map function, return a data.frame

Description

Shorthand for imsplit followed by purrr::map_df

Usage

idply(im, axis, fun, ...)

Arguments

im

image

axis

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

fun

function to apply

...

extra arguments to function fun

Examples

idply(boats,"c",mean) #mean luminance per colour channel

dahtah/imager documentation built on Feb. 23, 2023, 10:16 p.m.