Sensor and calibration¶
Key points¶
- The E-M5 III and the OM-5 use the same sensor, which is one reason OM-5 features port across so well.
- The camera stores a raw frame as tightly packed 12-bit values, about 32 MB for a full frame.
- Every camera carries factory calibration, and 172 of the E-M5 III's 173 entries match the OM-5's exactly.
- The firmware switches the sensor between about twenty modes, and 4K movie is a crop from the middle of the sensor.
This page describes the image sensor as the firmware sees it. It covers the sensor's size, how a raw frame sits in memory, the calibration stored for each camera at the factory, and the modes the sensor runs in.
The E-M5 III and the OM-5 use the same sensor. That is one reason features from the OM-5 port across so well.
Size¶
The sensor reads out 5240 × 3912 pixels and delivers a 20-megapixel picture of 5184 × 3888. Some of its pixels are phase-detect autofocus pixels.
Tripod High Res Shot builds pictures of 10368 × 7776. The OM-5's hand-held High Res adds a slightly larger 10416 × 7824.
A raw frame in memory¶
A raw frame is the sensor's data before any processing. Each pixel holds one colour value, in the usual Bayer pattern of red, green and blue.
The camera stores 12 bits per pixel, packed tightly. Every 16 bytes hold 10 pixels plus one spare byte. A full frame takes about 32 MB, and each row takes 8,384 bytes.
A few details matter when you work with these frames:
- Black is about 256 and full white is 4095.
- The frame is stored upside down compared with the picture.
- The black level and white balance are filled in late, when the picture's metadata is written, not when the shot is set up.
Factory calibration¶
Every camera is measured at the factory, and the results are stored in the camera. They include maps of defective pixels, black levels, dark shading and saturation.
The E-M5 III has 173 calibration entries. 172 of them are identical in the OM-5, down to their position and size. The OM-5 adds five more, for things like the eye sensor's distance, and one audio entry grows. That near-perfect match is strong evidence that the two cameras share their imaging hardware.
Sensor modes¶
The firmware switches the sensor between modes by sending it a request. Each request names a mode, a frame rate and an exposure.
| use | mode | notes |
|---|---|---|
| live view | MSPD | 120 frames per second, reading every third line and column |
| half-press | HSSC | 60 frames per second |
| shutter | STILL | full sensor, every pixel |
| 4K movie | MOVIE_4K | a crop from the middle of the sensor, every pixel |
| Cinema 4K movie | MOVIE_C4K | the full sensor width, every pixel |
| Full HD movie | HSHR | a band of the sensor at half resolution |
| Wi-Fi remote live view | MOVIE_HQ | the full area at half resolution |
The sensor modes with a known use. The technical page lists all of them.
There are about twenty modes in all. Some read every pixel, and others combine pixels in 2 × 2 or 3 × 3 blocks to read faster. A rough estimate puts a full readout of every pixel at about 23 frames per second.
So 4K is a crop, about 1.27 times narrower than the full sensor. Cinema 4K uses the full width and scales it down.
Live ND on the OM-5 uses one more kind of request, a long-exposure frame. The E-M5 III's sensor code already understands it.
Other cameras¶
The OM-5 and E-M1 III have the same sensor readouts and the same geometry as the E-M5 III.
Further reading¶
- Sensor and calibration: technical notes has the mode table, the raw frame layout and the addresses.
- Sensor control link explains how the main chip sends these modes to the sensor.
- Taking a photo shows when the sensor switches modes during a shot.
- Movie recording covers how movies are recorded.
- Image engine explains what happens to a raw frame next.
Research by the Oly Firmware Notes and Mods contributors, shared under CC BY 4.0. If you use or summarise it, please credit and link "Sensor and calibration".
Spotted a mistake, or know something we don't? Additions and corrections are welcome. Open an issue on the notes repository.