reference
labkit.image.displayName
Return a short image-file display name.
Syntax
name = labkit.image.displayName(pathValue)Description
Removes the folder portion of one path and returns the final filename with its extension. The function performs text processing only; the path does not need to exist. If fileparts cannot derive a filename, the trimmed input text is returned.
Inputs
pathValue- Character vector, string scalar, or another value convertible to one string scalar.
Outputs
name- String scalar containing the filename and extension.
Errors
labkit:image:InvalidPath- pathValue converts to more than one string.
Example
name = labkit.image.displayName(fullfile("images", "frame01.tif"));Related APIs
labkit.image.normalizePaths— Normalize image file path inputs to a string column.labkit.image.readFiles— Read image files into path/name/image records.labkit.image.adjustBrightnessContrast— Apply simple brightness and contrast adjustment.labkit.image.adjustHueSaturation— Apply HSV hue and saturation adjustment.labkit.image.assertSupportedPaths— Throw when any path has an unsupported image extension.labkit.image.ensureRgb— Return image data with exactly three color channels.labkit.image.fileDialogFilter— Return a file-chooser-compatible image filter.labkit.image.grayWorldWhiteBalance— Apply generic gray-world white balance.
Source
This page is generated from the MATLAB help text in +labkit/+image/displayName.m.