フィルターのクリア

How to change a range of pixel values in a Grayscale JPEG image?

2 ビュー (過去 30 日間)
Margery
Margery 2015 年 4 月 9 日
コメント済み: Margery 2015 年 4 月 9 日
Hello, I want to change pixels from a given range e.g. 60-95 to 255. How can I do it? I did look at lots of codes but they are all just for single values and I'm new to Matlab

採用された回答

David Young
David Young 2015 年 4 月 9 日
Like this (where A is the array containing the image):
A(A >= 60 & A <= 95) = 255;
By the way, that the image is stored on disk in JPEG format isn't relevant - once you've read it, it is just an array.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by