#
# evaluate an image at a finer grid
#
data( lennon)
# create the surface object
obj<- list( x= 1:20, y=1:20, z= lennon[ 201:220, 201:220])
# make up a finer grid
temp<- seq( 1,20,,150)
make.surface.grid( list( temp,temp))-> loc
set.panel(2,1)
interp.surface( obj, loc)-> look
image( obj$z)
image( as.surface( loc, look))
Run the code above in your browser using DataLab