R/imageFilter.R

Defines functions bilateralFilter

Documented in bilateralFilter

#' Title
#'
#' @param img 
#' @param sdSpace 
#' @param sdTone 
#' 
#' @references \insertRef{Weickert2019}{Raspository} 
#'
#' @return
#' @export
#'
#' @examples
bilateralFilter <- function(img, sdSpace, sdTone, patchRange = 5){
    ## This function is a wrapper around the corresponding Cpp function
    imgMatrix <- img@imageMatrix
    
    return(new("imageOneChannel", image = bilateralFilterCpp(imgMatrix,sdSpace, sdTone,
                                                     patchRange)))
}
David-J-R/Raspository documentation built on April 17, 2023, 12:55 a.m.