LabKit MATLAB Workbench

reference

API ReferenceThermal 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 false

Source

This page is generated from the MATLAB help text in +labkit/+thermal/isSupportedPath.m.