Obtain temperature values from the pixel values of a thermal image?

How do I obtain temperature values from the pixel values obtained in thermal image?Assuming the thermal image obtained is in Grey scale format

It depends on the image. If you show the image, then we show how you can extract the temperature data.