Issue in using distmap function for a tiff image in R

Viewed 9

I am trying to do distance map computation on a tiff image and I am facing this issue. I am using EBI package to read and display the tiff file 'r'.

nmaskt = thresh(r, w = 20, h = 10, offset = 0.05)
display( nmaskt, all=TRUE )
dmap = distmap(nmaskt)
range(dmap)

Error in UseMethod("distmap") : no applicable method for 'distmap' applied to an object of class "c('Image', 'array', 'structure', 'vector')"

0 Answers
Related