iiply {imager} | R Documentation |
Split an image, apply function, recombine the results as an image
Description
This is just imsplit followed by purrr::map followed by imappend
Usage
iiply(im, axis, fun, ...)
Arguments
im |
image |
axis |
axis for the split (e.g "c") |
fun |
function to apply |
... |
extra arguments to function fun |
Examples
##' #Normalise colour channels separately, recombine
iiply(boats,"c",function(v) (v-mean(v))/sd(v)) %>% plot
[Package imager version 1.0.2 Index]