R/clean.images.R

Defines functions clean.images

clean.images <- function(obj) {
  if (! 'CanalogramImages' %in% class(obj)) {
    stop("Function rescale.images is only for CanalogramImages")
  }
  for (i in 1:length(obj$images)) {
    obj$images[[i]]$image <- NA
  }
  obj$data <- NA
  return(obj)
}
enbrown/eye-canalogram documentation built on April 10, 2020, 12:04 a.m.