Hi I am trying to achieve a multi-level thresholding meaning in an image different levels of thresholding for different regions. Using thresh.otsu I can implement global thresholding but I want to have three regions in an image - white, gray and black. White for the brightest regions, gray for the intermediately brighter regions and black for darker regions. Is this possible using otsu thresholding. I have come across various articles stating multilevel otsu thresholding but no good example which I can use as reference. Any help appreciated.