converting a thermal image to graylevel

i have a thermal image of human face ,how to convert this image in graylevel?

11 Comments

What do you mean? Since a temperature map is already single valued, you could argue that it already is graylevel. What do you want to do with the gray image? Maybe that will help clarifying what it is you need to do.
You have it where though? In what form? That is a plotted image with a colourmap, it isn't raw data. The fact it has a colourmap suggests it is already underlying greyscale data.
so is this a graylevel image?
Well, again, you haven't given any information as to what you actually have. That is a plot, not data.
make it simle ,sir please tell me is there any differnce between rgb image and thermal image??
and if there is so what is code for getting a graylevel image or rgb image from thermal image??
RGB image will be three dimensional matrix. Gray image will be one dimensional matrix.. Read about rgb2gray.
Ok, I'll make my question simple. What do you have and what do you want?
A thermal image is generally displayed as a color image, but it is usually an indexed image, meaning that there is a colormap that determines what temperature value should result in what color.
sir i am asking about difference in thermal image and rgb?
You keep asking the same question without answering any of our requests for information!
You must have actual data, not just a screenshot. Tell us what that data is. What size is it? is it (n*m*3) or just n*m?
Then you have an RGB image. You need to find out the colormap that was used to convert temperature to color so you can revert that process and get a n*m array.

Sign in to comment.

Answers (0)

Categories

Find more on Display Image in Help Center and File Exchange

Asked:

on 9 Apr 2019

Commented:

Rik
on 9 Apr 2019

Community Treasure Hunt

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

Start Hunting!