raw2dng parameters being handled differently
Closed, ResolvedPublic

Description

It seems that raw12 files are handled or the default parameters are different depending on the input file being piped in or the file being handed over as parameter.

Example:

maxime@mardi:~/apertus/20200514$ raw2dng test_snap_r_b_x1.raw12

test_snap_r_b_x1.raw12
Resolution  : 4096 x 3072
Frame size  : 18874368 bytes
Bayer Order : GBRG 
Exposure    : 0.990192 ms
Gain        : x1
Offset      : 2000
Black level : 128
White level : 4095
Not found   : gainframe-x1.pgm
Not found   : clipframe-x1.pgm
Dark frame  : darkframe-x1.pgm
Dark current: dcnuframe-x1.pgm x 1.0
Even rows   : 160...182
Odd rows    : 166...199
Row noise from black columns...
Fixed freq  : 1/256.2 (mag=4.36)
Fixed freq  : 1/242.4 (mag=3.81)
Fixed freq  : 1/228.6 (mag=2.92)
Fixed freq  : 1/144.2 (mag=2.37)
Fixed freq  : 1/139.6 (mag=2.31)
Fixed freq  : 1/66.67 (mag=2.45)
Fixed freq  : 1/65.73 (mag=2.45)
Fixed freq  : 1/216.1 (mag=2.19)
Fixed freq  : 1/110.1 (mag=2.1)
Fixed freq  : 1/112.9 (mag=2.11)
Fixed freq  : 1/67.68 (mag=1.94)
Fixed freq  : 1/121.9 (mag=1.98)
Fixed freq  : 1/102.8 (mag=2.08)
Fixed freq  : 1/162.7 (mag=1.78)
Fixed freq  : 1/77.26 (mag=1.98)
Fixed freq  : 1/118.4 (mag=1.81)
Fixed freq  : 1/127.1 (mag=1.7)
Fixed freq  : 1/63.18 (mag=2.07)
Fixed freq  : 1/106.1 (mag=1.78)
Fixed freq  : 1/64.13 (mag=1.65)
Fixed freq  : 1/244.5 (mag=1.58)
Fixed freq  : 1/75.9 (mag=1.57)
Fixed freq  : 1/72.25 (mag=1.62)
Fixed freq  : 1/70.95 (mag=1.68)
Fixed freq  : 1/204 (mag=1.54)
Fixed freq  : 1/231.7 (mag=1.5)
Fixed freq  : 1/181.8 (mag=1.51)
Fixed freq  : 1/256.2 (mag=2.87)
Fixed freq  : 1/245.9 (mag=1.91)
Fixed freq  : 1/131.4 (mag=1.63)
Fixed freq  : 1/155.9 (mag=1.75)
Fixed freq  : 1/215.9 (mag=1.37)
Fixed freq  : 1/60.41 (mag=1.76)
Fixed freq  : 1/59.64 (mag=1.38)
Fixed freq  : 1/46.84 (mag=1.34)
Fixed freq  : 1/100.2 (mag=1.6)
Fixed freq  : 1/227.6 (mag=1.28)
Fixed freq  : 1/78.67 (mag=1.51)
Fixed freq  : 1/109.2 (mag=1.25)
Fixed freq  : 1/24.9 (mag=1.25)
Fixed freq  : 1/142.5 (mag=1.19)
Fixed freq  : 1/123.1 (mag=1.15)
Fixed freq  : 1/87.87 (mag=1.07)
Fixed freq  : 1/43.71 (mag=1.09)
Fixed freq  : 1/202.7 (mag=1.07)
Fixed freq  : 1/147.6 (mag=1.11)
Fixed freq  : 1/48.98 (mag=1.03)
Fixed freq  : 1/162.8 (mag=1.01)
Fixed freq  : 1/176.6 (mag=0.97)
Fixed freq  : 1/115.4 (mag=0.939)
Fixed freq  : 1/57.69 (mag=0.9)
Fixed freq  : 1/56.93 (mag=1)
Fixed freq  : 1/53.97 (mag=1.02)
Fixed freq  : 1/60.94 (mag=0.976)
Fixed freq  : 1/86 (mag=0.866)
Fixed freq  : 1/90.73 (mag=1)
Fixed freq  : 1/93.17 (mag=1)
Fixed freq  : 1/45.58 (mag=1.01)
Fixed freq  : 1/73.6 (mag=1.16)
Fixed freq  : 1/134.3 (mag=0.955)
Fixed freq  : 1/211.5 (mag=0.847)
Fixed freq  : 1/239.5 (mag=0.923)
Fixed freq  : 1/256.2 (mag=2.1)
Fixed freq  : 1/228.3 (mag=1.22)
Fixed freq  : 1/245.3 (mag=1.26)
Fixed freq  : 1/190.1 (mag=1.19)
Fixed freq  : 1/200 (mag=1.06)
Fixed freq  : 1/182.1 (mag=0.842)
Fixed freq  : 1/215.2 (mag=0.866)
Fixed freq  : 1/127.7 (mag=0.841)
Fixed freq  : 1/25.03 (mag=1.09)
Fixed freq  : 1/25.75 (mag=0.978)
Fixed freq  : 1/25.61 (mag=0.981)
Fixed freq  : 1/171.9 (mag=0.84)
Fixed freq  : 1/31.19 (mag=1.01)
Fixed freq  : 1/30.93 (mag=0.976)
Fixed freq  : 1/102.6 (mag=0.83)
Fixed freq  : 1/81.6 (mag=0.732)
Fixed freq  : 1/77.37 (mag=1.02)
Fixed freq  : 1/72.35 (mag=0.748)
Fixed freq  : 1/118.6 (mag=0.739)
Fixed freq  : 1/189.9 (mag=0.732)
Fixed freq  : 1/228.6 (mag=0.747)
Fixed freq  : 1/161.9 (mag=0.693)
Fixed freq  : 1/241.5 (mag=0.744)
Fixed freq  : 1/256.2 (mag=1.59)
Fixed freq  : 1/247.8 (mag=0.934)
Fixed freq  : 1/202.3 (mag=0.862)
Fixed freq  : 1/232.4 (mag=0.835)
Fixed freq  : 1/217.3 (mag=0.836)
Fixed freq  : 1/155 (mag=0.84)
Fixed freq  : 1/180.5 (mag=0.802)
Fixed freq  : 1/83.26 (mag=0.907)
Fixed freq  : 1/58.65 (mag=0.8)
Fixed freq  : 1/70.2 (mag=0.928)
Fixed freq  : 1/68.87 (mag=0.84)
Fixed freq  : 1/66.93 (mag=0.935)
Fixed freq  : 1/243.8 (mag=0.686)
Fixed freq  : 1/52.4 (mag=0.794)
Fixed freq  : 1/51.71 (mag=0.76)
Fixed freq  : 1/30.38 (mag=0.728)
Fixed freq  : 1/29.62 (mag=0.721)
Fixed freq  : 1/190.7 (mag=0.647)
Fixed freq  : 1/106.1 (mag=0.741)
Fixed freq  : 1/96.94 (mag=0.695)
Fixed freq  : 1/33.29 (mag=0.73)
Fixed freq  : 1/14.23 (mag=0.674)
Fixed freq  : 1/14.28 (mag=0.668)
Fixed freq  : 1/37.07 (mag=1.02)
Fixed freq  : 1/139.4 (mag=0.619)
Fixed freq  : 1/123.3 (mag=0.628)
Fixed freq  : 1/229.5 (mag=0.689)
Fixed freq  : 1/170.9 (mag=0.656)
Fixed freq  : 1/22.15 (mag=0.631)
Fixed freq  : 1/27.33 (mag=0.726)
Fixed freq  : 1/48.44 (mag=1.04)
Fixed freq  : 1/47.43 (mag=0.694)
Fixed freq  : 1/47.92 (mag=0.661)
Fixed freq  : 1/215.5 (mag=0.57)
Fixed freq  : 1/146.4 (mag=0.577)
Fixed freq  : 1/99.32 (mag=0.578)
Fixed freq  : 1/88.38 (mag=0.594)
Fixed freq  : 1/202.7 (mag=0.582)
Fixed freq  : 1/241.6 (mag=0.623)
Fixed freq  : 1/256.2 (mag=1.66)
Fixed freq  : 1/247.5 (mag=0.946)
Fixed freq  : 1/231.9 (mag=0.942)
Fixed freq  : 1/161.6 (mag=0.675)
Fixed freq  : 1/178.5 (mag=0.589)
Fixed freq  : 1/53.1 (mag=0.635)
Fixed freq  : 1/26.73 (mag=0.617)
Fixed freq  : 1/61.98 (mag=0.806)
Fixed freq  : 1/216.9 (mag=0.555)
Fixed freq  : 1/134.8 (mag=0.687)
Fixed freq  : 1/129.9 (mag=0.595)
Fixed freq  : 1/79.37 (mag=0.666)
Fixed freq  : 1/243 (mag=0.555)
Fixed freq  : 1/190 (mag=0.604)
Fixed freq  : 1/90.59 (mag=0.591)
Fixed freq  : 1/49.64 (mag=0.897)
Fixed freq  : 1/139.7 (mag=0.536)
Fixed freq  : 1/114.3 (mag=0.584)
Fixed freq  : 1/170.2 (mag=0.539)
Fixed freq  : 1/199.3 (mag=0.596)
Fixed freq  : 1/227.6 (mag=0.595)
Fixed freq  : 1/153.5 (mag=0.612)
Fixed freq  : 1/63.06 (mag=0.646)
Fixed freq  : 1/75.18 (mag=0.846)
Fixed freq  : 1/44.21 (mag=0.826)
Fixed freq  : 1/43.39 (mag=0.596)
Fixed freq  : 1/35.1 (mag=0.552)
Fixed freq  : 1/65.17 (mag=0.673)
Output file : test_snap_r_b_x1.DNG
Done.

maxime@mardi:~/apertus/20200514$ cat test_snap_r_b_x1.raw12 | raw2dng snap_rbx1.DNG

snap_rbx1.DNG
Resolution  : 4096 x 3072
Frame size  : 18874368 bytes
Bayer Order : GBRG 
Black level : 128
White level : 4095
Output file : snap_rbx1.DNG
Done.

maxime@mardi:~/apertus/20200514$ ls
darkframe-x1.pgm  snap_rbx1.DNG           test_snap_r_b_x1_rnfilter1.DNG
dcnuframe-x1.pgm  test_snap_r_b_x1.DNG    test_snap_r_b_x1_rnfilter2.DNG
old               test_snap_r_b_x1.raw12
maxime@mardi:~/apertus/20200514$
sebastian closed this task as Resolved.May 20 2020, 10:38 AM

many thanks @alex !