Multilevel otsu thresholding
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.
you don't tell us, why you're trying this, so it's likely an XY problem. maybe thresholding is wrong idea, to start with ? can we see an example image ? or one with what you're trying to achieve ?
clustering ?