Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Instead of using temperature[count++] as the index, you could try temperature[j*img.rows + i].

In any case, a temperature is defined by a spectrum. One pixel does not produce a spectrum.

However, there is a peak photon wavelength in a spectrum, so technically you could use that as a way to get a temperature from only one pixel.

See https://en.wikipedia.org/wiki/Wien%27s_displacement_law for the formula Peak Wavelength = b/T.

Good luck.

Instead of using temperature[count++] as the index, you could try temperature[j*img.rows + i].

In any case, a temperature is defined by a spectrum. One pixel does not produce a spectrum.

However, there is a peak photon wavelength in a spectrum, so technically you could use that as a way to get a temperature from only one pixel.

See https://en.wikipedia.org/wiki/Wien%27s_displacement_law for the formula Peak Wavelength = b/T., where b is Wien's constant, and T is temperature in Kelvins.

Good luck.

Instead of using temperature[count++] as the index, you could try temperature[j*img.rows + i].

In any case, a temperature is defined by a spectrum. One By definition, one pixel does not produce a spectrum.

However, there is a peak photon wavelength in a spectrum, so technically you could use that as a way to get a temperature from only one pixel.

See https://en.wikipedia.org/wiki/Wien%27s_displacement_law for the formula Peak Wavelength = b/T, where b is Wien's constant, and T is temperature in Kelvins.

Good luck.

Instead of using temperature[count++] as the index, you could try temperature[j*img.rows + i].

In any case, a temperature is defined by a spectrum. By definition, one pixel does not produce a spectrum.

However, there is a peak photon wavelength in a spectrum, so technically you could use that as a way to get a temperature from only one pixel.

See Wien's displacement law https://en.wikipedia.org/wiki/Wien%27s_displacement_law for the formula Peak Wavelength = b/T, where b is Wien's constant, and T is temperature in Kelvins.

Also see Planck's law https://en.wikipedia.org/wiki/Planck%27s_law#The_law

Good luck.