필터 지우기
필터 지우기

Change color of a image according to pixel value. PLEASE HELP.

조회 수: 2 (최근 30일)
I want to change gray image to RGB according to pixel values. I mean, the pixel which are having higher values will be changed to red color and pixel
which are having lower values will be changed to bluish color. Mainly I am doing a project in which I want to change a thermal gray image to a image having temperature related image like hotter part having red color and colder part will be having blue color. PLEASE HELP ME. THANKS IN ADVANCE.

채택된 답변

Image Analyst
Image Analyst 2013년 9월 22일
Do something like
rgbImage = ind2rgb(grayImage, jet(256));
  댓글 수: 4
Dhrubajyoti Das
Dhrubajyoti Das 2013년 9월 22일
I mean can u please explain how it works.... or can u please write the full code. Please sir it would be of great help.
Image Analyst
Image Analyst 2013년 9월 22일
That is the full code. There is nothing more. jet(256) is a colormap. A color map is a pseudocolor lookup table that gives an output RGB color for every graylevel input value. ind2rgb applies that pseudocolor lookup table to the gray image and gives the RGB image as the output. Read carefully what I said and ask if there's anything you don't understand.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Red에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by