How to fix a threshold for an image?

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

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)

Asked:

on 16 Feb 2016

Commented:

on 16 Feb 2016

Community Treasure Hunt

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

Start Hunting!