How to rescale a part of a 2D Matrix?
1 view (last 30 days)
Show older comments
Kevin San Diego
on 27 Aug 2019
Commented: Kevin San Diego
on 27 Aug 2019
Hello,
I have read an image using imread() and it returns a 2D Matrix of uint8.
I proceed to get the indeces of parts of the image which meet some conditions. For example, I store make_zero = image < 100 as I want to make these values zero. And I do, scale_above = image >= 100 which I want to rescale from x to y. I was hoping to use the rescale function.
However, after I get this 2D Matrix logical where the conditions meet, I am unsure how to proceed on how to use these indeces.
Thank you for your help!
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!