reference
API Reference › Thermal Images
labkit.thermal.isSupportedPath
Test whether a path has a supported thermal extension.
Syntax
tf = labkit.thermal.isSupportedPath(path)Description
Compares the filename extension with the extensions returned by labkit.thermal.supportedExtensions. The comparison is case-insensitive. This function does not access the file system and does not check whether a JPEG contains radiometric data. Use labkit.thermal.inspectFile when the file contents must be verified.
Inputs
path- Character vector or string scalar containing a filename or path.
Outputs
tf- Logical scalar. The value is true for .jpg, .jpeg, and .rjpg names and false for all other extensions.
Failure Behavior
Unknown extensions return false without accessing the file system. path must be convertible to scalar text; unsupported MATLAB values or shapes may raise the originating string or fileparts conversion error.
Example
labkit.thermal.isSupportedPath("capture.RJPG") % returns true
labkit.thermal.isSupportedPath("capture.png") % returns falseRelated APIs
labkit.thermal.supportedExtensions— List the supported thermal filename extensions.labkit.thermal.inspectFile— Check whether a file contains supported radiometric data.labkit.thermal.fileDialogFilter— Create a file-selection filter for thermal images.labkit.thermal.rawToTemperatureC— Convert FLIR raw sensor values to degrees Celsius.labkit.thermal.readFile— Read radiometric image data and convert it to degrees Celsius.labkit.thermal.readFiles— Read several radiometric image files.labkit.thermal.renderImage— Map a thermal matrix to an RGB image.labkit.thermal.version— Return version information for the thermal API.
Source
This page is generated from the MATLAB help text in +labkit/+thermal/isSupportedPath.m.