Learn R Programming

Thermimage (version 4.1.3)

Thermal Image Analysis

Description

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 converting thermal image, videos, rewriting and exporting. v3.1. Added new functions to convert files. v3.2. Fixed the various functions related to finding frame times. v4.0. fixed an error in atmospheric attenuation constants, affecting raw2temp and temp2raw functions. Recommend update for use with long distance calculations. v.4.1.3 changed to frameLocates to reflect change to as.character() to format().

Copy Link

Version

Install

install.packages('Thermimage')

Monthly Downloads

275

Version

4.1.3

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Glenn Tattersall

Last Published

September 27th, 2021

Functions in Thermimage (4.1.3)

Prandtl

Returns the Prandtl number
Lu

Estimates upward facing ground radiation (W/m2)
Nusseltforced

Nusselt number for forced convection.
Grashof

Determines the Grashof number for an object
StephBoltz

The Stephan Boltzman constant.
Reynolds

Calculates the Reynolds number.
Ld

Estimates downward facing longwave radiation (W/m2)
Nusseltfree

Nusselt number for free convection.
areacylinder

Provides the surface area of a cylinder.
Thermimage-package

Handles thermal image data input and conversion to temperature using established physical equations.
areasphere

Provides the surface area of a sphere.
frameLocates

Find the frame read start positions in a FLIR SEQ video file.
forcedparameters

Parameters required for forced convection equation.
airdensity

Returns the density of air for a given air temperature.
getTimes

Extracts time values from binary imported thermal video file
hconv

Convective heat coefficient (W/m2/oC)
cumulDiff

Cumulative difference sum function for use with frame by frame difference dataframe
diffFrame

A frame difference function for subtracting adjacent frames from an imported thermal image sequence.
glowbowpal

Colour palette extracted from FLIR thermal camera files
airviscosity

Returns air viscosity for a given air temperature.
areacone

Provides the surface are of a cone
greyredpal

Colour palette extracted from FLIR thermal camera files
midgreypal

Colour palette extracted from FLIR thermal camera files
Lw

Estimates downward facing longwave radiation (W/m2)
rotate180.matrix

Rotate a matrix by 180 degrees. Used for adjusting image plotting in R.
readflirJPG

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

Colour palette extracted from Mikron thermal camera files
qabs

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

Plot thermal image data for visualisation purposes.
airspecificheat

Specific heat capacity of air
freeparameters

Parameters required for free convection equation.
flirpal

Colour palette extracted from FLIR thermal camera files
airtconductivity

Thermal conductivity of air.
flirsettings

Extracts meta tag information from a FLIR JPG image
Teq

Estimates equivalent temperature.
grey10pal

Colour palette extracted from FLIR thermal camera files
Tground

Estimates ground temperature from ambient temperature and solar radiation.
getFrames

Extract raw binary thermal from thermal image file.
mikroscanpal

Colour palette extracted from FLIR thermal camera files
writeFlirBin

Saves thermal image data to a binary file
convertflirVID

Convert FLIR CSQ or SEQ into PNG or AVI, using shell commands.
meanEveryN

Calculate the mean every nth data point.
convertflirJPG

Convert FLIR jpg into 16 bit grayscale file using shell commands.
qrad

Estimates the area specific heat transfer by radiation (W/m2)
locate.fid

Returns the index locations that match vector fid within data vector.
yellowpal

Colour palette extracted from FLIR thermal camera files
rotate270.matrix

Rotate a matrix by 270 degrees counterclockwise (or 90 degree clockwise). Used for adjusting image plotting in R.
rainbow1234pal

Colour palette extracted from FLIR thermal camera files
rotate90.matrix

Rotate a matrix by 90 degrees counterclockwise (270 degrees clockwise). Used for adjusting image plotting in R.
flip.matrix

Flips a matrix 'left-right'. Used in re-arranging image data for plotting properly in R.
midgreenpal

Colour palette extracted from FLIR thermal camera files
ffmpegcall

A simplified wrapper function calling ffmpeg
qcond

Estimates the area specific heat transfer by conduction (W/m2)
ironbowpal

Colour palette extracted from FLIR thermal camera files
medicalpal

Colour palette extracted from FLIR thermal camera files
hotironpal

Colour palette extracted from FLIR thermal camera files
qconv

Estimates the area specific heat transfer by convection (W/m2)
thermsum

Return summary of thermal image data.
grey120pal

Colour palette extracted from FLIR thermal camera files
mirror.matrix

Mirrors a matrix upside-down. Used in re-arranging image data for plotting properly in R.
thermsumcent

Summary thermal calculations on a centrally located region of interest from a thermal image dataset
nameleadzero

Add leading zeros to character for easy sequential naming of filenames.
raw2temp

Converts raw thermal data into temperature (oC)
slopeEveryN

Calculate the slope every nth data point.
rainbowpal

Colour palette extracted from FLIR thermal camera files
temp2raw

Converts temperature (oC) to raw thermal data
slopebypoint

Returns the slope from linear regression with x values as equally spaced 1:length
samp.image

A sample thermal image to demonstrate thermal colour palette use.
palette.choose

Choose a colour palette for gradient filling thermal image files.
Te

Operative temperature estimate.