
Calculate threshold from image using beta mixture model
Source:R/intensity_modeling.R
betamix_img.Rd
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.