ArticleslgStudy

science

Raw image format

Raw image format is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Raw image format rather than just read about it. In short: A camera raw image file is a file that contains unprocessed data straight from a digital camera. Such data can later be changed into a photo, either within a digital camera itself or by usage of external tools.

Raw image format — main illustration
Raw image format — illustration

Key takeaways

  • Raw image format belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Raw image format to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Raw image format from memory before moving on to harder problems.

Reference excerpt

A camera raw image file is a file that contains unprocessed data straight from a digital camera. Such data can later be changed into a photo, either within a digital camera itself or by usage of external tools. Raw files are so named because they are not yet processed, and contain large amounts of potentially redundant data. Normally, the image is processed by a raw converter, in a wide-gamut internal color space where precise adjustments can be made before conversion to a viewable photo for storage, printing, or further manipulation. There are dozens of raw formats in use by different manufacturers of digital image capture equipment.

Rationale Raw image files are sometimes described as "digital negatives". Like transparency film and unlike negative film, raw image pixels contain positive exposure measurements. The raw datasets are more like undeveloped film: a raw image can be developed by software in a non-reversible manner to reach a complete image that resolves every pixel in an RGB or other viewable color space. Raw development adjustments include color, contrast, brightness and details recovery. A given raw dataset can be developed many times with different adjustments. In contrast, developing an exposed film transforms it irreversibly; thus, development cannot be repeated on the same exposed film. If the film is negative, the printing process must invert the image to a positive result. Like negative photographic film, a raw digital image may have a wider dynamic range or color gamut than the positive print. Unlike physical film after development, the Raw file preserves the information captured at the time of exposure. The purpose of raw image formats is to save, with minimum loss of information, data obtained from the sensor. Raw image formats are intended to capture the radiometric characteristics of the scene, that is, physical information about the light intensity and color of the scene, at the best of the camera sensor's performance. Most raw image file formats store information sensed according to the geometry of the sensor's individual photo-receptive elements (sometimes called pixels) rather than points in the expected final image: sensors with hexagonal element displacement, for example, record information for each of their hexagonally displaced cells, which a decoding software will eventually transform into the rectangular geometry during "digital developing".

File contents Raw files contain the information required to produce a viewable image from the camera's sensor data. The structure of raw files often follows a common pattern:

A short file header which typically contains an indicator of the byte-ordering of the file, a file identifier and an offset into the main file data Camera sensor metadata which is required to interpret the sensor image data, including the size of the sensor, the attributes of the CFA and its color profile Image metadata which can be useful for inclusion in any CMS environment or database. These include the exposure settings, camera/scanner/lens model, date (and, optionally, place) of shoot/scan, authoring information and other. Some raw files contain a standardized metadata section with data in Exif format. An image thumbnail Most raw files contain a full size JPEG conversion of the image, which is used to preview the file on the camera's LCD panel. In the case of motion picture film scans, either the timecode, keycode or frame number in the file sequence which represents the frame sequence in a scanned reel. This item allows the file to be ordered in a frame sequence (without relying on its filename). The sensor image data Many raw file formats, including IIQ (Phase One), 3FR (Hasselblad), DCR, K25, KDC (Kodak), CRW, CR2 (Canon), ERF (Epson), MEF (Mamiya), MOS (Leaf), NEF NRW (Nikon), ORF (Olympus), PEF (Pentax), RW2 (Panasonic) and ARW, SRF, SR2 (Sony), are based on TIFF, the Tag Image File Format. These files may deviate from the TIFF standard in a number of ways, including the use of a non-standard file header, the inclusion of additional image tags and the encryption of some of the tag data. DNG, the Adobe digital negative format, is an extension of the TIFF 6.0 format and is compatible with TIFF/EP, and uses various open formats and standards, including Exif metadata, XMP metadata, IPTC metadata, CIE XYZ coordinates, ICC profiles, and JPEG.

Sensor image data In digital photography, the raw file plays the role that photographic film plays in film photography. Raw files thus contain the full dynamic range (typically 12- or 14-bit) data as read out from each of the camera's image sensor pixels. The camera's sensor is almost invariably overlaid with a color filter array (CFA), usually a Bayer filter, consisting of a mosaic of a 2x2 matrix of red, green, blue and (second) green filters. One variation on the Bayer filter is the RGBE filter of the Sony Cyber-shot DSC-F828, which exchanged the green in the RG rows with "emerald" (a blue-green or cyan color). Other sensors, such as the Foveon X3 sensor, capture information directly in RGB form (using three pixel sensors in each location). This RGB raw data still needs to be processed to make an image file, because the raw RGB values correspond to the responses of the sensors, not to a standard color space like sRGB. As there is no color filter array, there is no need for demosaicing. Flatbed and film scanner sensors are typically straight narrow RGB or RGBI (where "I" stands for the additional infrared channel for automatic dust removal) strips that are swept across an image. The HDRi raw data format is able to store the infrared raw data, which can be used for infrared cleaning, as an additional 16-bit channel. The remainder of the discussion about raw files applies to them as well. Some scanners do not allow the host system access to the raw data at all, as a speed compromise. The raw data are processed very rapidly inside the scanner to select out the best part of the available dynamic range so only the result is passed to the computer for permanent storage, reducing the amount of data transferred and therefore the bandwidth requirement for any given speed of image throughput.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Raw image format

Start with the simplest possible case. Write down what Raw image format claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Raw image format before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Raw image format ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Raw image format

In research
Raw image format appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Raw image format in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Raw image format is common in secondary-school and first-year university syllabi. It links to neighbouring topics Digital photography, Graphics file formats, so understanding it makes those chapters shorter.
In everyday life
Look for Raw image format outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Raw image format” →

How to study Raw image format in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Raw image format means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Raw image format out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Raw image format in simple terms?

A camera raw image file is a file that contains unprocessed data straight from a digital camera. Such data can later be changed into a photo, either within a digital camera itself or by usage of external tools.

Why does Raw image format matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Raw image format?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Raw image format.

Tags

  • Digital photography
  • Graphics file formats

Keep exploring