Split an image, apply function, recombine the results as an image

Share:

Description

This is just imsplit followed by llply followed by imappend

Usage

1
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

1
2
##' #Normalise colour channels separately, recombine
iiply(boats,"c",function(v) (v-mean(v))/sd(v)) %>% plot 

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.