Read metadata from RAW file
Retrieve metadata from a RAW image file.
info = rawinfo("colorCheckerTestImage.NEF");
CFALayout field to determine the sensor layout.
sensor_layout = info.CFALayout
sensor_layout = "RGGB"
filename— Name of RAW file
Name of RAW file, specified as a string scalar or character vector. Specify
filename as a full path, containing the file name and extension,
or as a relative path from the current folder or from any folder on the MATLAB® path.
info— Metadata from RAW file
Metadata from the RAW file, returned as a
struct with these
|String scalar specifying the full name, including the path, to the RAW image file.|
String scalar specifying the type of the sensor that captured the
|String scalar specifying the sensor layout for Bayer sensors. Sensor
layouts supported by |
|Two-element row vector of type |
|Scalar of type |
|Structure containing all the size information that describes a CFA image.|
|Structure containing all of the color information required to render an RGB image from the CFA image.|
|Structure containing the EXIF Tags, if any, present in the file. The
|Structure containing information about the lens used to capture the image.|
|Structure containing information, if any, about the camera and image creator present in the file.|
|String scalar containing the Adobe Extensible Metadata Platform (XMP) data, if any, present in the file.|
|Structure containing format specific information, such as DNG Tags and X-Trans sensor layout descriptions. If no format specific information is available, this value is an empty structure.|
|String scalar specifying the version of the LibRaw library currently being used. LibRaw is a library for reading RAW files obtained from digital photo cameras. For more information, see libraw.org.|
rawinfo function does not support RAW file formats that employ
The RAW file format preserves image data in its most unedited state, recorded directly from the camera sensor. Most camera manufacturers define their own proprietary RAW file format, such as the Nikon NEF file format and the Canon CRW format. Adobe has also defined a RAW file format, DNG (digital negative), which is supported by several cameras. The name of the format is typically capitalized, like other file formats such as JPG and TIF. However, unlike other file formats, RAW is not an acronym.
The function uses LibRaw version 0.20.2 for reading the CFA image data.