Raw (.raw, .arw, .crw, .nef, .nrw, .dng, ...)
- Import supports raw images stored in a file with any of the following extensions: .bay, .bmq, .cr2, .crw, .cs1, .dc2, .dcr, .dng, .erf, .fff, .hdr, .k25, .kdc, .mdc, .mos, .mrw, .nef, .orf, .pef, .pxn, .raf, .raw, .rdc, .sr2, .srf, .x3f, .arw, .3fr, .cine, .ia, .kc2, .mef, .nrw, .qtk, .rw2, .sti, .rwl.
- Import supports Exif 2.3 metadata standard.
Background & Context
-
- MIME types: image/x-raw-canon, image/x-raw-nikon, image/x-raw-sony, ...
- Typically store not-processed sensor data.
- Typically store uncompressed or lossless compressed data.
Import
- Import["file.raw"] imports a raw file and returns a viewable image.
- Import["file.raw",elem] imports the specified element from a raw file.
- The import format can be specified with Import["file","Raw"] or Import["file",{"Raw",elem,…}].
- See the following reference pages for full general information:
-
Import import from a file CloudImport import from a cloud object ImportString import from a string ImportByteArray import from a byte array
Import Elements
- General Import elements:
-
"Elements" list of elements and options available in this file "Summary" summary of the file "Rules" list of rules for all available elements - Data representation elements:
-
"Data" array of color values "Graphics" Graphics object representing an image "Image" raster image, given as an Image object "RawData" array of intensity values captured by the sensor "RawImage" image representing raw captured sensor data "EmbeddedThumbnail" thumbnail stored in the file, if available {"Thumbnail",size} thumbnail of a given size (default size = Small) - Import by default uses the "Image" element for raw image formats.
- Advanced Import elements:
-
"BitDepth" bits used to represent raw pixels in the file "CameraTopOrientation" orientation of the camera when the picture was taken "Channels" the number of color channels used in the file "ColorProfileData" embedded color profile, given as a ColorProfileData object "ColorSpace" color encoding used in the file "FlashUsed" - whether the flash was fired
"FilterPattern" color filter array (cfa) used for demosaicing "GeoPosition" latitude and longitude represented as a GeoPosition object "GPSDateTime" - image creation date and time registered by GPS
"RasterSize" raster dimensions "RedEyeCorrection" whether a red-eye correction was performed "Summary" - summary of the file
- Metadata elements:
-
"Exif" formatted Exif (Exchange image file format) "MetaInformation" combination of all formatted metadata present in the file - Raw Exif, as stored in the file, can be imported using "RawExif" elements, returned as an association.
- All Exif tags can be imported individually. Common tags include:
-
"ApertureValue" lens aperture "Artist" photographer or image creator "DateTime" image creation date and time "ExposureTime" exposure time, given in seconds "FlashInfo" - flash information: flash fired, red-eye correction, etc.
"FNumber" F number "FocalLength" actual focal length of the lens, given in millimeters "GPSAltitude" altitude of the GPS position "GPSLatitude" latitude of the GPS position "GPSLongitude" longitude of the GPS position "Make" manufacturer of the recording equipment "Model" model name or model number of the equipment "Software" name and version of the software or firmware of the camera or image input device used to generate the image
Options
- Import options:
-
ImageResolution Automatic resolution values "ImageTopOrientation" Automatic orientation of the image as stored in the file IncludeMetaInformation All metadata types to import and export RasterSize Automatic dimensions of the image
Examples
open allclose allScope (2)
Import Elements (22)
Data Representation (7)
"Graphics" (1)
Import as a Graphics object:
"Image" (1)
Metadata (13)
"ColorSpace" (1)
Get the color encoding used on export:
Use ImageColorSpace to get the color space of an imported image:
"Exif" (3)
"RasterSize" (1)
Get the dimensions of the image stored in the file:
Use ImageDimensions on an imported image gives the same result: