How can I give different thresholds to an image
    4 views (last 30 days)
  
       Show older comments
    
    Joydeb Saha
 on 11 Apr 2022
  
    
    
    
    
    Commented: Joydeb Saha
 on 10 May 2022
            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 Comments
Accepted Answer
  Walter Roberson
      
      
 on 11 Apr 2022
        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()
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
