필터 지우기
필터 지우기

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?

답변 (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