How to implement bayesian modeling and linear thresholding method for segmentation purpose in histopathological image using MATLAB code to diagnose cancer cell (i.e. mitotic count)?