Raw (.raw, .arw, .crw, .nef, .nrw, .dng, ...)

Background

    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 and Export

  • 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 reference page for full general information on Import.

Notebook Interface

  • In the notebook front end, Insert Picture and the Open menu allow the import of a raw file into a cell.

Elements

  • General Import elements:
  • "Elements" list of elements and options available in this file
    "Rules"full list of rules for each element and option
    "Options"list of rules for options, properties, and settings
  • 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
    {"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
    "ColorProfileData"embedded color profile, given as a ColorProfileData object
    "ColorSpace"color encoding used in the file
    "Exif"formatted Exif (Exchange image file format)
    "FilterPattern"color filter array (cfa) used for demosaicing
    "ImageSize"raster dimensions
  • Individual Exif tags (available for Import):
  • "Aperture"lens aperture
    "Author"author of the file
    "DateTime"image creation date and time
    "ExposureTime"exposure time, given in seconds
    "FlashUsed"whether the flash was fired
    "FocalLength"actual focal length of the lens, given in millimeters
    "ImageDescription"image description
    "ISOSpeedRatings"ISO 12232 speed rating of the camera or input device
    "Make"maker of the camera or input device
    "Model"model specification of the camera or input device

Options

Examples

open allclose all

Basic Examples  (1)

Import a Raw file:

In[5]:=
Click for copyable input
Out[5]=

Import Elements  (2)

Import Options  (1)

See Also

"JPEG"  "TIFF"  "PNG"  "WebP"

Introduced in 2015
(10.1)
| Updated in 2016
(11.0)