Wolfram Language & System 10.3 (2015)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

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.

BackgroundBackground

    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 ExportImport 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.
  • Import["file.raw",{elem,suba,subb,}] imports a subelement.
  • Import["file.raw",{{elem1,elem2,}}] imports multiple elements.
  • 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 InterfaceNotebook Interface

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

ElementsElements

  • 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
    "RawData"array of intensity values captured by the sensor
    "Graphics"Graphics object representing an image
    "Image"raster image, given as an Image object
    "RawImage"image representing raw captured sensor data
    {"Thumbnail",size}thumbnail of a given size (default size = Small)
  • Import by default uses the element for raw image formats.
  • Advanced Import elements:
  • "Author"author of the file
    "BitDepth"bits used to represent raw pixels in the file
    "ColorProfileData"embedded color profile, given as a ColorProfileData object
    "ColorSpace"color encoding used in the file
    "ImageSize"raster dimensions
    "Exif"all Exif tags, given as a list of rules
    "FilterPattern"color filter array (cfa) used for demosaicing
  • Individual Exif tags (available for Import):
  • "Aperture"aperture setting at which the picture was taken, given in APEX units
    "CameraTopOrientation"orientation of the camera when the picture was taken
    "Date"date and time the original picture was taken, given as a DateObject
    "Exposure"photographic exposure time in seconds
    "FlashUsed"whether the flash was fired
    "FocalLength"focal length in millimeters
    "ImageDescription"image description
    "ISOSpeedRatings"ISO 12232 speed rating of the camera or input device
    "Manufacturer"maker of the camera or input device
    "Model"model specification of the camera or input device

OptionsOptions

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

Save a raw file locally:

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

Import a raw file:

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

Elements of a raw image file:

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

Raw image sensor data can be imported using :

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

Save a raw file locally:

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

Import a raw file:

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

Elements of a raw image file:

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

Extract some elements:

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

Import Exif:

In[5]:=
Click for copyable input
Out[5]=
Introduced in 2015
(10.1)
| Updated in 2015
(10.3)