#' @param nlFilter string. type of non-linear filter to apply: "None", "Closing" or "Median"
#' @param nlSize numeric. kernel width in pixel for non-linear filtering
#' @param sigmap numeric or matrix. if a single number is provided, sigmap is the standard deviation of the Gaussian filter in pixel, 0 corresponds to no smoothing. In case of matrix, the first column corresponds to the standard deviation of the filter, and the second to thresholds for image values (e.g. a filter of standard deviation specified in line \code{i} is applied to pixels in image which values are between thresholds indicated in lines \code{i} and \code{i+1}). Threshold values should be ordered in increasing order.
#' @param padding boolean. Whether image should be padded by duplicating edge values before filtering to avoid border effects
#' @examples
#' data(chmchablais3)
#'
...
...
@@ -65,7 +66,7 @@ createDisk <- function(width=5)
#' @seealso \code{\link{maximaDetection}}, filters of imager package: \code{\link[imager]{mclosing}}, \code{\link[imager]{medianblur}}, \code{\link[imager]{deriche}}
#' @return A list of two cimg or a RasterStack objects: image after non-linear filter and image after both filters
\item{nlSize}{numeric. kernel width in pixel for non-linear filtering}
\item{sigmap}{numeric or matrix. if a single number is provided, sigmap is the standard deviation of the Gaussian filter in pixel, 0 corresponds to no smoothing. In case of matrix, the first column corresponds to the standard deviation of the filter, and the second to thresholds for image values (e.g. a filter of standard deviation specified in line \code{i} is applied to pixels in image which values are between thresholds indicated in lines \code{i} and \code{i+1}). Threshold values should be ordered in increasing order.}
\item{padding}{boolean. Whether image should be padded by duplicating edge values before filtering to avoid border effects}
}
\value{
A list of two cimg or a RasterStack objects: image after non-linear filter and image after both filters