Multilevel otsu thresholding

asked 2019-11-10 18:53:52 -0600

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.

edit retag flag offensive close merge delete

Comments

1

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 ?

I want to have three regions in an image - white, gray and black

clustering ?

berak gravatar imageberak ( 2019-11-11 01:00:30 -0600 )edit