Thermimage: Thermal Image Analysis

A collection of functions and routines for inputting thermal image video files, plotting and converting binary raw data into estimates of temperature. First published 2015-03-26. Written primarily for research purposes in biological applications of thermal images. v1 included the base calculations for converting thermal image binary values to temperatures. v2 included additional equations for providing heat transfer calculations and an import function for thermal image files (v2.2.3 fixed error importing thermal image to windows OS). v3. Added numerous functions for importing thermal image videos, rewriting and exporting.

Install the latest version of this package by entering the following in R:
AuthorGlenn J. Tattersall
Date of publication2017-03-25 16:14:42 UTC
MaintainerGlenn J. Tattersall <>
LicenseGPL (>= 2)

View on CRAN

Man pages

airdensity: Returns the density of air for a given air temperature.

airspecificheat: Specific heat capacity of air

airtconductivity: Thermal conductivity of air.

airviscosity: Returns air viscosity for a given air temperature.

areacone: Provides the surface are of a cone

areacylinder: Provides the surface area of a cylinder.

areasphere: Provides the surface area of a sphere.

cumulDiff: Cumulative difference sum function for use with frame by...

diffFrame: A frame difference function for subtracting adjacent frames...

flip.matrix: Flips a matrix 'left-right'. Used in re-arranging image data...

flirpal: Colour palette extracted from FLIR thermal camera files

flirsettings: Extracts meta tag information from a FLIR JPG image

forcedparameters: Parameters required for forced convection equation.

frameLocates: Find the frame read start positions in a thermal video file.

freeparameters: Parameters required for free convection equation.

getFrames: Extract raw binary thermal from thermal image file.

getTimes: Extracts time values as POSIX from binary imported thermal...

glowbowpal: Colour palette extracted from FLIR thermal camera files

Grashof: Determines the Grashof number for an object

grey10pal: Colour palette extracted from FLIR thermal camera files

grey120pal: Colour palette extracted from FLIR thermal camera files

greyredpal: Colour palette extracted from FLIR thermal camera files

hconv: Convective heat coefficient (W/m2/oC)

hotironpal: Colour palette extracted from FLIR thermal camera files

ironbowpal: Colour palette extracted from FLIR thermal camera files

Ld: Estimates downward facing longwave radiation (W/m2)

locate.fid: Returns the index locations that match vector fid within data...

Lu: Estimates upward facing ground radiation (W/m2)

Lw: Estimates downward facing longwave radiation (W/m2)

meanEveryN: Calculate the mean every nth data point.

medicalpal: Colour palette extracted from FLIR thermal camera files

midgreenpal: Colour palette extracted from FLIR thermal camera files

midgreypal: Colour palette extracted from FLIR thermal camera files

mikronprismpal: Colour palette extracted from Mikron thermal camera files

mikroscanpal: Colour palette extracted from FLIR thermal camera files

mirror.matrix: Mirrors a matrix upside-down. Used in re-arranging image...

nameleadzero: Add leading zeros to character for easy sequential naming of...

Nusseltforced: Nusselt number for forced convection.

Nusseltfree: Nusselt number for free convection.

palette.choose: Choose a colour palette for gradient filling thermal image...

plotTherm: Plot thermal image data for visualisation purposes.

Prandtl: Returns the Prandtl number

qabs: Estimates the absorbed solar and infrared radiation (W/m2)

qcond: Estimates the area specific heat transfer by conduction...

qconv: Estimates the area specific heat transfer by convection...

qrad: Estimates the area specific heat transfer by radiation (W/m2)

rainbowpal: Colour palette extracted from FLIR thermal camera files

raw2temp: Converts raw thermal data into temperature (oC)

readflirJPG: Reads an image from a FLIR JPG file into an integer array.

Reynolds: Calculates the Reynolds number.

rotate180.matrix: Rotate a matrix by 180 degrees. Used for adjusting image...

rotate270.matrix: Rotate a matrix by 270 degrees counterclockwise (or 90 degree...

rotate90.matrix: Rotate a matrix by 90 degrees counterclockwise (270 degrees...

samp.image: A sample thermal image to demonstrate thermal colour palette...

slopebypoint: Returns the slope from linear regression with x values as...

slopeEveryN: Calculate the slope every nth data point.

StephBoltz: The Stephan Boltzman constant.

Te: Operative temperature estimate.

temp2raw: Converts temperature (oC) to raw thermal data

Teq: Estimates equivalent temperature.

Tground: Estimates ground temperature from ambient temperature and...

Thermimage-package: Handles thermal image data input and conversion to...

thermsum: Return summary of thermal image data.

thermsumcent: Summary thermal calculations on a centrall located region of...

writeFlirBin: Saves thermal image data to a binary file

yellowpal: Colour palette extracted from FLIR thermal camera files


airdensity Man page
airspecificheat Man page
airtconductivity Man page
airviscosity Man page
areacone Man page
areacylinder Man page
areasphere Man page
cumulDiff Man page
diffFrame Man page
flip.matrix Man page
flirpal Man page
flirsettings Man page
forcedparameters Man page
frameLocates Man page
freeparameters Man page
getFrames Man page
getTimes Man page
glowbowpal Man page
Grashof Man page
grey10pal Man page
grey120pal Man page
greyredpal Man page
hconv Man page
hotironpal Man page
ironbowpal Man page
Ld Man page
locate.fid Man page
Lu Man page
Lw Man page
meanEveryN Man page
medicalpal Man page
midgreenpal Man page
midgreypal Man page
mikronprismpal Man page
mikroscanpal Man page
mirror.matrix Man page
nameleadzero Man page
Nusseltforced Man page
Nusseltfree Man page
palette.choose Man page
plotTherm Man page
Prandtl Man page
qabs Man page
qcond Man page
qconv Man page
qrad Man page
rainbowpal Man page
raw2temp Man page
readflirJPG Man page
Reynolds Man page
rotate180.matrix Man page
rotate270.matrix Man page
rotate90.matrix Man page
samp.image Man page
slopebypoint Man page
slopeEveryN Man page
StephBoltz Man page
Te Man page
temp2raw Man page
Teq Man page
Tground Man page
Thermimage Man page
Thermimage-package Man page
thermsum Man page
thermsumcent Man page
writeFlirBin Man page
yellowpal Man page


R/Te.R R/frameLocates.R R/nameleadzero.R R/areacylinder.R R/rotate90.matrix.R R/Thermimage.R R/flirsettings.R R/rotate270.matrix.R R/cumulDiff.R R/Tground.R R/airviscosity.R R/Nusseltfree.R R/Grashof.R R/temp2raw.R R/rotate180.matrix.R R/thermsumcent.R R/Lu.R R/Ld.R R/slopeEveryN.R R/meanEveryN.R
R/Reynolds.R R/locate.fid.R R/Prandtl.R R/areacone.R R/hconv.R R/areasphere.R R/qrad.R R/StephBoltz.R R/getTimes.R R/Nusseltforced.R R/slopebypoint.R R/freeparameters.R R/airdensity.R R/readflirJPG.R R/plotTherm.R R/palette.choose.R R/airspecificheat.R R/forcedparameters.R R/airtconductivity.R R/flip.matrix.R R/getFrames.R R/qabs.R R/diffFrame.R R/Teq.R R/raw2temp.R R/writeFlirBin.R R/mirror.matrix.R R/Lw.R R/thermsum.R R/qcond.R R/qconv.R
man/freeparameters.Rd man/qconv.Rd man/airviscosity.Rd man/Tground.Rd man/airspecificheat.Rd man/areacylinder.Rd man/grey10pal.Rd man/Reynolds.Rd man/temp2raw.Rd man/yellowpal.Rd man/slopebypoint.Rd man/forcedparameters.Rd man/writeFlirBin.Rd man/Prandtl.Rd man/frameLocates.Rd man/samp.image.Rd man/grey120pal.Rd man/readflirJPG.Rd man/Te.Rd man/rotate180.matrix.Rd man/Lw.Rd man/flip.matrix.Rd man/hconv.Rd man/Teq.Rd man/mikronprismpal.Rd man/mirror.matrix.Rd man/StephBoltz.Rd man/rotate90.matrix.Rd man/Nusseltforced.Rd man/midgreypal.Rd man/ironbowpal.Rd man/thermsum.Rd man/Thermimage-package.Rd man/hotironpal.Rd man/Ld.Rd man/medicalpal.Rd man/palette.choose.Rd man/flirpal.Rd man/airdensity.Rd man/qcond.Rd man/Lu.Rd man/diffFrame.Rd man/areacone.Rd man/plotTherm.Rd man/glowbowpal.Rd man/flirsettings.Rd man/slopeEveryN.Rd man/getFrames.Rd man/greyredpal.Rd man/areasphere.Rd man/midgreenpal.Rd man/meanEveryN.Rd man/thermsumcent.Rd man/Grashof.Rd man/Nusseltfree.Rd man/airtconductivity.Rd man/getTimes.Rd man/cumulDiff.Rd man/rainbowpal.Rd man/nameleadzero.Rd man/qrad.Rd man/rotate270.matrix.Rd man/qabs.Rd man/mikroscanpal.Rd man/raw2temp.Rd man/locate.fid.Rd

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.