spm_bwlabel: SPM BWLabel Clusters of Certain Size

Description Usage Arguments Value Note

Description

Get Cluster of certain size from spm_bwlabel

Usage

1
2
3
spm_bwlabel(infile, outfile = NULL, retimg = TRUE, k = NULL,
  topN = NULL, margin = NULL, binary = TRUE, spmdir = spm_dir(),
  reorient = FALSE, verbose = TRUE)

Arguments

infile

input filename

outfile

output filename

retimg

Return the image instead of matlab output

k

Minimum cluster size needed

topN

Top number of clusters kept (used if k is NULL)

margin

Margin to loop over if wanted in 2D

binary

(logical) Should the result be binary or numbered with cluster.

spmdir

SPM directory (for MATLAB)

reorient

If retimg, then this argument is passed to readNIfTI

verbose

Print Diagnostics

Value

Output from run_matlab_script or nifti object, depending on retimg

Result from run_matlab_script

Note

Taken from http://en.wikibooks.org/wiki/SPM/How-to#How_to_remove_clusters_under_a_certain_size_in_a_binary_mask.3F



Search within the spm12r package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.