powered by
Threshold Image
thresholdImage(inimg, lothresh, hithresh, inval=1, outval=0)
Input image to operate on
Lower edge of threshold window
Higher edge of threshold window
Output value for image voxels in between lothresh and hithresh
lothresh
hithresh
Output value for image voxels lower than lothresh or higher than hithresh
antsImage
# NOT RUN { img <- makeImage(c(5,5), rnorm(25)+0.5) imgt<-thresholdImage( img, 0.5, Inf ) # }
Run the code above in your browser using DataLab