reference
labkit.image.isSupportedPath
Return true when a path has a supported image extension.
Syntax
tf = labkit.image.isSupportedPath(pathValue)Description
Compares the final filename extension with labkit.image.supportedExtensions. The comparison is case-insensitive and does not open the file, inspect its contents, or require it to exist. A path with no extension returns false.
Inputs
pathValue- One value convertible to text and accepted by fileparts.
Outputs
tf- Logical scalar indicating whether the extension is supported.
Failure Behavior
Missing or unknown extensions return false without accessing the file system. pathValue must be convertible to scalar text; unsupported MATLAB values or shapes may raise the originating string or fileparts error.
Example
tf = labkit.image.isSupportedPath("experiment.TIFF");Related APIs
labkit.image.supportedExtensions— Return extensions supported by LabKit image file inputs.labkit.image.assertSupportedPaths— Throw when any path has an unsupported image extension.labkit.image.normalizePaths— Normalize image file path inputs to a string column.labkit.image.adjustBrightnessContrast— Apply simple brightness and contrast adjustment.labkit.image.adjustHueSaturation— Apply HSV hue and saturation adjustment.labkit.image.displayName— Return a short image-file display name.labkit.image.ensureRgb— Return image data with exactly three color channels.labkit.image.fileDialogFilter— Return a file-chooser-compatible image filter.
Source
This page is generated from the MATLAB help text in +labkit/+image/isSupportedPath.m.