Main Content

isexr

Check if file is valid EXR file

Since R2022b

    Description

    tf = isexr(filename) checks if the specified file is a valid EXR file in the OpenEXR image format. The logical scalar tf indicates if the input is a valid EXR file.

    example

    Examples

    collapse all

    Check whether a file is a valid EXR format file.

    tf = isexr("office.exr")
    tf = logical
       1
    
    

    Input Arguments

    collapse all

    Name of the file, specified as a character vector or string scalar. filename can contain the absolute path to the file, a relative path from the current directory, or a relative path from a directory on the MATLAB® path.

    Data Types: char | string

    Output Arguments

    collapse all

    File is a valid EXR file, returned as a logical 1 (true) or 0 (false).

    Data Types: logical

    Extended Capabilities

    Version History

    Introduced in R2022b