powered by
thresholdImage(inimg, lothresh, hithresh, inval=1, outval=0)
lothresh
hithresh
img <- makeImage(c(5,5), rnorm(25)+0.5) imgt<-thresholdImage( img, 0.5, Inf )
Run the code above in your browser using DataLab