powered by
Reads a binary .raw file (typically 32-bit floating point), converts it into a matrix, and constructs a 'BioThermR' object containing raw data and metadata.
read_thermal_raw(file_path, width = 160, height = 120, rotate = TRUE)
A list object of class "BioThermR" containing:
The original temperature matrix (numeric).
A copy of the raw matrix, intended for subsequent ROI filtering or masking.
A list containing metadata: filename, fullpath, and dims.
filename
fullpath
dims
String. The full path to the .raw file.
Integer. The width of the thermal sensor (number of columns). Default is 160.
Integer. The height of the thermal sensor (number of rows). Default is 120.
Logical. Whether to rotate the image 90 degrees counter-clockwise. Default is TRUE (corrects orientation for many standard sensor exports).
img_obj <- system.file("extdata", "C05.raw", package = "BioThermR") img <- read_thermal_raw(img_obj)
Run the code above in your browser using DataLab