how to give color for same pixel values?

조회 수: 1 (최근 30일)
sheno39
sheno39 2013년 10월 19일
댓글: sheno39 2013년 10월 24일
i need to assign color for pixels having same value.. can anyone help me?

채택된 답변

Walter Roberson
Walter Roberson 2013년 10월 21일
cmap = copper(22); %some color map
outimg = ind2rgb( uint8(locatn), cmap);
image(outimg);
  댓글 수: 2
sheno39
sheno39 2013년 10월 22일
sir this coding works for simple 5x5 matrix. but it is not working for image..
sheno39
sheno39 2013년 10월 23일
sir can u help me to give different colors for different regions

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Image Analyst
Image Analyst 2013년 10월 19일
What do you mean by "pixels having the same value"? Do you mean, say, pixels having red color? And so you want to assign a green color to all pixels having "red" values? Meanwhile, why don't you look at my color segmentation demos in Image Analyst's awesome File Exchange?
  댓글 수: 8
sheno39
sheno39 2013년 10월 24일
sir can u help me convert RGB image from linear index.
sheno39
sheno39 2013년 10월 24일
편집: sheno39 2013년 10월 24일
I used ind2rgb function. but i didn't get the correct output

댓글을 달려면 로그인하십시오.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by