R/thresholdPlot.R

Defines functions thresholdPlot

Documented in thresholdPlot

thresholdPlot <-
function(images, n, threshold){
  slice<-load.image(images[[n]])
  slice[which(slice<threshold)]<-0
  plot(slice, rescale=FALSE)
  return(slice)
}

Try the GoodFibes package in your browser

Any scripts or data that you put into this service are public.

GoodFibes documentation built on Aug. 19, 2023, 1:06 a.m.