Difference between revisions of "RAW12"

From apertus wiki
Jump to: navigation, search
Line 18: Line 18:
==Handling the register block in RAW16 files==
==Handling the register block in RAW16 files==


The DNG expects the register block to be present so if it has not been saved with the image in camera:
The DNG converter expects the register block to be present so if it has not been saved with the image in camera:


To append an empty metadata block (sensor registers):
To append an empty metadata block (sensor registers):
  (cat old.raw16; dd if=/dev/zero bs=256 count=1) > new.raw16
  (cat old.raw16; dd if=/dev/zero bs=256 count=1) > new.raw16
To append an existing register block dumped into a file:
cat old.raw16 some.reg > new.raw16

Revision as of 12:49, 18 June 2014

1 Format Specifications

  • no header, big endian, 16bit (12msb padded with 4lsb zeroes)
  • starting at the top left, with 3072 rows of 4096 columns
  • the data is in bayer pattern RG/GB
  • image sensor registers dump (128 x 16bit, big endian) appended

2 Opening in Photoshop

  • rename the file extension from ".raw16" to ".raw"

Raw16-ps.jpg

2.1 Samples

XZ compressed sample files (use 7Zip to uncompress under windows: http://www.7-zip.org/)

http://vserver.13thfloor.at/Stuff/AXIOM/RAW/


2.2 Handling the register block in RAW16 files

The DNG converter expects the register block to be present so if it has not been saved with the image in camera:

To append an empty metadata block (sensor registers):

(cat old.raw16; dd if=/dev/zero bs=256 count=1) > new.raw16

To append an existing register block dumped into a file:

cat old.raw16 some.reg > new.raw16