setThresholds: Set tissue class thresholds

Description Usage Arguments Value Examples

View source: R/brainImageClass.R

Description

Sets tissue class thresholds for this object. Thresholds can be caluclated with identifyMinima().

Usage

1
setThresholds(img, thresholds)

Arguments

img

brainImage instance

thresholds

data.frame with key/val columns, calculated with identifyMinima()

Value

adjusted imageBrain object

Examples

1
2
3
4
5
data <- data.frame(x=1:15, y=1:15, 
z=c(rep(2,15), rep(3,15)), val=rnorm(6750))
img <- new("brainImage", data, "test", 10)
img <- setThresholds(img,
imageanalysisBrain::identifyMinima(getMeasurements(img), iterat=1000))

mknoll/imageanalysisBrain documentation built on May 23, 2019, 2:01 a.m.