Learn R Programming

ANTsR (version 1.0)

SmoothImage: Smooth an image

Description

Perform smoothing on the given image with a given sigma, defined in physical space units

Usage

SmoothImage( "" , "" , "SigmaVector" , "")

Arguments

imageDimension 2|3|4

Number of dimensions of the input image

inputImage

Input image to operate on

Sigma

Smoothing factor in format 1.1x1.5x0.5 for a 3D image

outputImage

Result image

Value

0 -- Success 1 -- Failure

Examples

Run this code
# NOT RUN {
# different ways you might smooth images of different dimensionality
SmoothImage( 2 , img ,"1.2x1.5", img)
SmoothImage( 3 , img ,"1x0x1", img)
SmoothImage( 4 , img ,"1x2x1x0", img)
# }

Run the code above in your browser using DataLab