FIL.applyFilter: Apply a filter to a 2d or a 3d array wow

Description Usage Arguments Value Examples

View source: R/Filter.R

Description

It applies filter to a 2d or 3d array. '...' is banned, so shit cannot flies ( ;) ).

Usage

1
FIL.applyFilter(arr2App, kernel.type, sigma = 1.4)

Arguments

arr2App

is the array containing the image that should be filtered

kernel.type

is the kernel you want to use: gaussian, laplacian, LoG,shrpen, emboss, sobel

sigma

is the sigma value for gaussian filter

Value

the filteres array (same geometry of the one in input)

Examples

1
2
3
4
5
6
7
## Not run: 
# Create an instante of new.mmButo and load some cases
a<-array( 0, dim=c(10,10,10))
a[5,5,5]<-177; a[5,6,5]<-198; a[6,6,5]<-45; a[6,5,5]<-12;
b<-FIL.applyFilter( a , kernel.type="gaussian", sigma=1.4)

## End(Not run)#' 

kbolab/moddicom documentation built on Nov. 29, 2020, 9:11 p.m.