downsample: Downsample an image.

Description Usage Arguments Value

View source: R/RImaGen-functions.r

Description

Downsample an image.

Usage

1
2
downsample(img, subFactor = 1, method = c("FLIRT", "SUBSAMP2"),
  bin = FALSE, thresh = 0.9)

Arguments

img

An image of class nifti.

subFactor

Downsampling factor.

method

Downsampling method.

bin

logical. Set to TRUE for downsampling of binary images or masks.

thresh

Treshhold for re-binarisation of downsampled binary images and masks. A threshold near 1 (say 0.9) is conservative according to FLIRT FAQ.

Value

A downsampled image.


JakubBartoszewicz/RImaGen documentation built on May 8, 2017, 11:21 p.m.