Split an image in half along one or more axes, apply a function, and paste it back together.

map_halfimg(img, fun = function(x) x, axes = "xy")

Arguments

img

a cimg object

fun

a function that operates on a cimg

axes

"x", "y", or "xy"

Value

an imlist