maxima: Computes local maxima from an nifti image

View source: R/pbj.R

maximaR Documentation

Computes local maxima from an nifti image

Description

Computes local maxima from an nifti image

Usage

maxima(stat, kernel = "box", width = 0, rois = FALSE, roisWidth = 15)

Arguments

stat

A statistical Nifti image as an RNifti image object.

kernel

Type of kernel to use for max/dilation filter

width

Width of kernel (assumes isotropic). If zero, then returns global maximum.

rois

If TRUE, return image with voxel values having the indices of the local maxima.

roisWidth

Width of kernel for computing local maxima used for table output later. Only used if width is zero

Value

Default returns vector of local maxima in the image.


simonvandekar/pbj documentation built on Nov. 3, 2023, 9:33 a.m.