reference
labkit.image.assertSupportedPaths
Throw when any path has an unsupported image extension.
Syntax
labkit.image.assertSupportedPaths(paths)Description
Validates a collection of source-image paths by filename extension. The function accepts the same path forms as labkit.image.normalizePaths and stops at the first unsupported extension. It does not test whether files exist or contain valid image data. Empty input succeeds.
Inputs
paths- Character vector, string array, cell array, or empty value accepted by
labkit.image.normalizePaths.
Outputs
None.
Errors
labkit:image:UnsupportedImageFile- A normalized path has an extension outside supportedExtensions.
labkit:image:InvalidPaths- paths has an unsupported container type.
Example
labkit.image.assertSupportedPaths(["frame01.png"; "frame02.TIF"]);Related APIs
labkit.image.normalizePaths— Normalize image file path inputs to a string column.labkit.image.isSupportedPath— Return true when a path has a supported image extension.labkit.image.supportedExtensions— Return extensions supported by LabKit image file inputs.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/assertSupportedPaths.m.