Filter löschen
Filter löschen

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

2 Ansichten (letzte 30 Tage)
Som
Som am 4 Jan. 2017
Kommentiert: Som am 4 Jan. 2017
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?

Antworten (1)

Walter Roberson
Walter Roberson am 4 Jan. 2017
mask = YourImage > 120;
newImage = YourImage;
newImage(mask) = newImage(mask) + 10;
  2 Kommentare
Som
Som am 4 Jan. 2017
if i want to increase blue by 10 and decrease red by 10,increase green by 20.how can i do?

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by