Adaptive Multi-Level Threshold for image

30 ビュー (過去 30 日間)
mustafa alnasser
mustafa alnasser 2014 年 9 月 28 日
コメント済み: Image Analyst 2017 年 12 月 13 日
Dear All;
I have an image with non-uniform illumination , i need to use adaptive threshold to compensate for that , then use multi level threshold to segment the image into Three regions, what is the best way to do that

回答 (3 件)

Image Analyst
Image Analyst 2014 年 9 月 28 日
Try adapthisteq(). How you classify into 3 classes after that depends on how easy it is to find the thresholds. Write a script to flatten your image with adapthisteq() and then take the histogram and show it to us.
  5 件のコメント
Image Analyst
Image Analyst 2017 年 12 月 13 日
Use regionprops() to get the bounding box and look at the width and height of it.

サインインしてコメントする。


Anand
Anand 2014 年 9 月 29 日
Have you tried using multithresh after adapthisteq? multithresh does multi-level thresholding using Otsu's method.
thresh = multithresh(I,2);
segI = imquantize(I,thresh);
  1 件のコメント
mustafa alnasser
mustafa alnasser 2014 年 10 月 5 日
thank you for the answer
Asi explainred, i need first to remove the non uniform illumination then use multi threshold , Non uniform illumanation function deose not works well for all cases that why I switch to adaptive thresholding but this one will give me binary image , my question how to combine both ?

サインインしてコメントする。


mustafa alnasser
mustafa alnasser 2014 年 9 月 29 日
Thank you very much for help.
in fact, Adaptive threshold makes it worse .
You can check the link below for the video source to undersatnd the situation http://www.youtube.com/watch?v=IjHZ4aEaCaE
What i am looking for is to segment the image into three area( Liquid, Gas, and Mix region at the border) I would like to combine both adaptive thresholding and multithresholding

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by