powered by
Center stencil at a location
center.stencil(stencil, ...)
a stencil (data.frame with coordinates dx,dy,dz,dc)
centering locations (e.g. x=4,y=2)
cimg.limit.openmp() stencil <- data.frame(dx=seq(-2,2,1),dy=seq(-2,2,1)) center.stencil(stencil,x=10,y=20)
Run the code above in your browser using DataLab