Skip to contents

This function takes an image array, number of mixture components, number of cores and additional parameters as inputs, and returns a threshold value. It detects the dimension of the image array and applies betamix_2d(), betamix_3d(), or betamix_4d() accordingly to calculate the threshold.

Usage

betamix_img(arr, mixnum = 2, n.cores = 1, ...)

Arguments

arr

image array

mixnum

The number of mixture components to use in the beta mixture model. Default is 2.

n.cores

number of cores used in parallel computing. Default is 1.

...

additional parameters passed to betamix_3d() and betamix_4d() functions

Value

A threshold value