MATLAB Answers

How to fix a threshold for an image?

2 views (last 30 days)
Yashaswini MU
Yashaswini MU on 16 Feb 2016
Commented: Brattv on 16 Feb 2016
Hi, I have obtained the PDF of an gray scale image.The research paper I am referring to says to fix a threshold such that anything lower than the threshold becomes the foreground and the values above the threshold becomes the background. Based on what should I set my threshold value? Can anybody help me with the matlab code?
Thank You.
  1 Comment
Brattv on 16 Feb 2016
That is really hard when we dont know have information about your image. Can you use the function " histogram " and show us the results?

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by