フィルターのクリア

How can I increase the color of certain pixel value in an intensity image?

2 ビュー (過去 30 日間)
Som
Som 2017 年 1 月 4 日
コメント済み: Som 2017 年 1 月 4 日
I have an intensity image and want to color the pixels which their intensity is above 120. In fact I want to replace pixels who's value is above 120 and i want to increase the color of same image red,green,blue by 10,only for above intensity 120 . How can I do this?
  2 件のコメント
Walter Roberson
Walter Roberson 2017 年 1 月 4 日
How can an RGB image be an intensity image?
Som
Som 2017 年 1 月 4 日
gray image it is

サインインしてコメントする。

回答 (1 件)

Walter Roberson
Walter Roberson 2017 年 1 月 4 日
mask = YourImage > 120;
newImage = YourImage;
newImage(mask) = newImage(mask) + 10;
  2 件のコメント
Som
Som 2017 年 1 月 4 日
if i want to increase blue by 10 and decrease red by 10,increase green by 20.how can i do?
Som
Som 2017 年 1 月 4 日
Thanks a lot sir.it's working

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by