temperature and gray level

is there any relation between gray level and thermal image?

5 commentaires

KSSV
KSSV le 15 Avr 2019
What do you mean by a relation?
monika  SINGH
monika SINGH le 15 Avr 2019
as in if gray level increses the temperature also increses or decreses??
is there any relation like this
Rik
Rik le 15 Avr 2019
In general, yes. The specifics will depend on you thermal camera setup.
monika  SINGH
monika SINGH le 16 Avr 2019
Modifié(e) : monika SINGH le 16 Avr 2019
do you have any document proving this fact?
Rik
Rik le 16 Avr 2019
No, but it seems common sense to me. If you have a temperature sensor, the value it returns should increase for increasing temperature. (unless the mapping is reversed, which should be in your camera documentation)

Connectez-vous pour commenter.

Réponses (1)

KSSV
KSSV le 16 Avr 2019

0 votes

I hope this demo code might help you:
N = 100 ;
x = rand(N,1) ;
y = rand(N,1) ;
s = rand(N,1) ; % Say intensity
% Assign colors
the_range=range(s); % find range of data
min_val = min(s); % find maximum value of data
max_val = max(s) ; % find minimum value of data
idx = floor(((s-min_val)/the_range)*63)+1;
p = colormap(gray) ;
col = p(idx,:) ;
subplot(121)
scatter(x,y,30,col,'filled')
colorbar
subplot(122)
scatter(x,y,30,s,'filled')
colorbar

Community Treasure Hunt

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

Start Hunting!

Translated by