How can i do image binarization with threshold?

1 view (last 30 days)
Hi, i have a problem. It seeks to establish a threshold (a number, eg. 128) and if for each pixel in its 3 color component value is less than the threshold, we generate a zero, and if it's more than threshold, 1. And the result will be a single matrix of zeros and ones. I need hep please. Thanks for all.

Answers (0)

Community Treasure Hunt

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

Start Hunting!