How can I give different thresholds to an image
조회 수: 5 (최근 30일)
이전 댓글 표시
How can I give different thresholds to an image? If 'cot' is the image matrix I have attached how can i give a threshold of zero, implying all pixels with non-zero values? Then all pixels above 1, and then all those above 5?
댓글 수: 0
채택된 답변
Walter Roberson
2022년 4월 11일
first_answer = cot ~= 0;
second_answer = cot > 1;
third_answer = cot > 5;
If you are trying to categorize the pixels by range, then see discretize()
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!