Learn R Programming

ANTsR (version 1.0)

ThresholdImage: Theshold Image

Description

Perform thresholding on the given image

Usage

ThresholdImage( "" , "" , "" , "" , "" , "" , "" )
ThresholdImage( "" , "" , "" , "Otsu" , "" )

Arguments

imageDimension 2|3

Number of dimensions of the input image

inputImage

Input image to operate on

outputImage

Result image

thresh-low

Lower edge of threshold window

thresh-high

Higher edge of threshold window

inside-value

Inside value

outside-value

Outside value

number-of-thresholds

Number of thresholds

Value

0 -- Success 1 -- Failure

Examples

Run this code
# NOT RUN {
ThresholdImage( 3 , "input_img.nii" , "output_img.nii" , 2 , 3 )
ThresholdImage( 3 , "input_img.nii" , "output_img.nii" , "Otsu" , 3 )
# }

Run the code above in your browser using DataLab