Autor Beitrag
HermannZephir
Hält's aus hier
Beiträge: 2



BeitragVerfasst: Di 03.07.12 12:52 
Hallo miteinander
Ich habe eine SBF Bilddatei die sich wie folgt zusammensetzt:
Die Bilddaten sind zweimal gespeichert: Einmal sind die unteren 8 Bit (0...7) des CCD-Sensors, also 256 Graustufen, gespeichert. Das zweite Bild enthält die Bits 2...9 der 12 Bit auflösenden CCD-Kamera, also zwei Bits in Richtung Hell verschobenes (und damit ein um vier Blendenstufen dunkleres) Bild.

Das erste Bild, also das Hellere bekomme ich eingelesen und auch gespeichert, aber an die Werte des zweiten Bildes komme ich einfach nicht heran, bin wahrscheinlich einfach zu dämlich. Ich suche jetzt eine Lösung, die lediglich das zweite Bild (Dunkle) aus der beigefügten Datei in ein Bitmap einlist und dann als JPG speichert.

Ich füge einmal ein Testbild bei, hoffe inständig, dass Ihr eine einfache Lösung parat habt, suche mir bereits seit Tagen einen Wolf!


Dank und lieben Gruss
Hermann
Einloggen, um Attachments anzusehen!
Blup
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 173
Erhaltene Danke: 43



BeitragVerfasst: Di 03.07.12 14:30 
Einloggen, um Attachments anzusehen!
HermannZephir Threadstarter
Hält's aus hier
Beiträge: 2



BeitragVerfasst: Di 03.07.12 14:53 
Meinst du dieses Bild?

Das ist das Bild, welches ich unter anderem auch mit XnView zur Anzeige bringen kann. Dieses Bild kann ich selber auslesen und speichern, ich brauche das 2. Bild in der Datei, leider!

Wäre toll wenn ihr helfen könntet

Danke
uall@ogc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1826
Erhaltene Danke: 11

Win 2000 & VMware
Delphi 3 Prof, Delphi 7 Prof
BeitragVerfasst: Mi 04.07.12 19:54 
Ist dein Bild denn entschluesselt? Also aus dem Temp Ordner?

Zitat:

Ein Export nach .jpg oder .tif ist nur mit der dem Sachverständigen normalerweise nicht zugänglichen bzw. für ca. 2150 EUR käuflich zu erwerbenden lizensierten Vollversion möglich. Die entschlüsselte Version der .sbf-Datei wird allerdings undokumentierterweise im Ordner "C:\Dokumente und Einstellungen\%User%\Lokale Einstellungen\Temp" zur Verfügung gestellt (%User% ist der eigene Benutzername).


Dein angehaengtes Bild hat wohl kein witeres Bild gespeichert (jedenfalls ist da kaum Platz uebrig)

ausblenden volle Höhe Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
JPEGsnoop 1.6.0 by Calvin Hass
  http://www.impulseadventure.com/photo/
  -------------------------------------

  Filename: [C:\Users\daniel\Desktop\TEST_001.sbf]
  Filesize: [923463] Bytes

Start Offset: 0x00000047
*** Marker: SOI (xFFD8) ***
  OFFSET: 0x00000047
 
*** Marker: APP0 (xFFE0) ***
  OFFSET: 0x00000049
  length     = 16
  identifier = [JFIF]
  version    = [1.1]
  density    = 1 x 1 (aspect ratio)
  thumbnail  = 0 x 0
 
*** Marker: DQT (xFFDB) ***
  Define a Quantization Table.
  OFFSET: 0x0000005B
  Table length = 67
  ----
  Precision=8 bits
  Destination ID=0 (Luminance)
    DQT, Row #0:   3   2   2   3   5   8  10  12 
    DQT, Row #1:   2   2   3   4   5  12  12  11 
    DQT, Row #2:   3   3   3   5   8  11  14  11 
    DQT, Row #3:   3   3   4   6  10  17  16  12 
    DQT, Row #4:   4   4   7  11  14  22  21  15 
    DQT, Row #5:   5   7  11  13  16  21  23  18 
    DQT, Row #6:  10  13  16  17  21  24  24  20 
    DQT, Row #7:  14  18  19  20  22  20  21  20 
    Approx quality factor = 90.06 (scaling=19.88 variance=1.14)
 
*** Marker: SOF0 (Baseline DCT) (xFFC0) ***
  OFFSET: 0x000000A0
  Frame header length = 11
  Precision = 8
  Number of Lines = 2152
  Samples per Line = 2456
  Image Size = 2456 x 2152
  Raw Image Orientation = Landscape
  Number of Img components = 1
    Component[1]: ID=0x01, Samp Fac=0x11 (Subsamp 1 x 1), Quant Tbl Sel=0x00 (Lum: Y)
 
*** Marker: DHT (Define Huffman Table) (xFFC4) ***
  OFFSET: 0x000000AD
  Huffman table length = 31
  ----
  Destination ID = 0
  Class = 0 (DC / Lossless Table)
    Codes of length 01 bits (000 total): 
    Codes of length 02 bits (001 total): 00 
    Codes of length 03 bits (005 total): 01 02 03 04 05 
    Codes of length 04 bits (001 total): 06 
    Codes of length 05 bits (001 total): 07 
    Codes of length 06 bits (001 total): 08 
    Codes of length 07 bits (001 total): 09 
    Codes of length 08 bits (001 total): 0A 
    Codes of length 09 bits (001 total): 0B 
    Codes of length 10 bits (000 total): 
    Codes of length 11 bits (000 total): 
    Codes of length 12 bits (000 total): 
    Codes of length 13 bits (000 total): 
    Codes of length 14 bits (000 total): 
    Codes of length 15 bits (000 total): 
    Codes of length 16 bits (000 total): 
    Total number of codes: 012

 
*** Marker: DHT (Define Huffman Table) (xFFC4) ***
  OFFSET: 0x000000CE
  Huffman table length = 181
  ----
  Destination ID = 0
  Class = 1 (AC Table)
    Codes of length 01 bits (000 total): 
    Codes of length 02 bits (002 total): 01 02 
    Codes of length 03 bits (001 total): 03 
    Codes of length 04 bits (003 total): 00 04 11 
    Codes of length 05 bits (003 total): 05 12 21 
    Codes of length 06 bits (002 total): 31 41 
    Codes of length 07 bits (004 total): 06 13 51 61 
    Codes of length 08 bits (003 total): 07 22 71 
    Codes of length 09 bits (005 total): 14 32 81 91 A1 
    Codes of length 10 bits (005 total): 08 23 42 B1 C1 
    Codes of length 11 bits (004 total): 15 52 D1 F0 
    Codes of length 12 bits (004 total): 24 33 62 72 
    Codes of length 13 bits (000 total): 
    Codes of length 14 bits (000 total): 
    Codes of length 15 bits (001 total): 82 
    Codes of length 16 bits (125 total): 09 0A 16 17 18 19 1A 25 26 27 28 29 2A 34 35 36 
                                         37 38 39 3A 43 44 45 46 47 48 49 4A 53 54 55 56 
                                         57 58 59 5A 63 64 65 66 67 68 69 6A 73 74 75 76 
                                         77 78 79 7A 83 84 85 86 87 88 89 8A 92 93 94 95 
                                         96 97 98 99 9A A2 A3 A4 A5 A6 A7 A8 A9 AA B2 B3 
                                         B4 B5 B6 B7 B8 B9 BA C2 C3 C4 C5 C6 C7 C8 C9 CA 
                                         D2 D3 D4 D5 D6 D7 D8 D9 DA E1 E2 E3 E4 E5 E6 E7 
                                         E8 E9 EA F1 F2 F3 F4 F5 F6 F7 F8 F9 FA 
    Total number of codes: 162

 
*** Marker: SOS (Start of Scan) (xFFDA) ***
  OFFSET: 0x00000185
  Scan header length = 8
  Number of img components = 1
    Component[1]: selector=0x01, table=0x00
  Spectral selection = 0 .. 63
  Successive approximation = 0x00


*** Decoding SCAN Data ***
  OFFSET: 0x0000018F
  Scan Decode Mode: Full IDCT (AC + DC)

  Scan Data encountered marker   0xFFD9 @ 0x000E0D2F.0

  Compression stats:
    Compression Ratio:  5.74:1
    Bits per pixel:     1.39:1

  Huffman code histogram stats:
    Huffman Table: (Dest ID: 0, Class: DC)
      # codes of length 01 bits:        0 (  0%)
      # codes of length 02 bits:     8431 ( 10%)
      # codes of length 03 bits:    69387 ( 84%)
      # codes of length 04 bits:     3297 (  4%)
      # codes of length 05 bits:      810 (  1%)
      # codes of length 06 bits:      503 (  1%)
      # codes of length 07 bits:      155 (  0%)
      # codes of length 08 bits:        0 (  0%)
      # codes of length 09 bits:        0 (  0%)
      # codes of length 10 bits:        0 (  0%)
      # codes of length 11 bits:        0 (  0%)
      # codes of length 12 bits:        0 (  0%)
      # codes of length 13 bits:        0 (  0%)
      # codes of length 14 bits:        0 (  0%)
      # codes of length 15 bits:        0 (  0%)
      # codes of length 16 bits:        0 (  0%)

    Huffman Table: (Dest ID: 0, Class: AC)
      # codes of length 01 bits:        0 (  0%)
      # codes of length 02 bits:   663257 ( 49%)
      # codes of length 03 bits:   120252 (  9%)
      # codes of length 04 bits:   276181 ( 20%)
      # codes of length 05 bits:   127143 (  9%)
      # codes of length 06 bits:    65223 (  5%)
      # codes of length 07 bits:    43893 (  3%)
      # codes of length 08 bits:    19364 (  1%)
      # codes of length 09 bits:    21157 (  2%)
      # codes of length 10 bits:     7876 (  1%)
      # codes of length 11 bits:     8972 (  1%)
      # codes of length 12 bits:      730 (  0%)
      # codes of length 13 bits:        0 (  0%)
      # codes of length 14 bits:        0 (  0%)
      # codes of length 15 bits:       38 (  0%)
      # codes of length 16 bits:     4343 (  0%)

  YCC clipping in DC:
    Y  component: [<0=    0] [>255=    0]
    Cb component: [<0=    0] [>255=    0]
    Cr component: [<0=    0] [>255=    0]

  RGB clipping in DC:
    R  component: [<0=    0] [>255=    0]
    G  component: [<0=    0] [>255=    0]
    B  component: [<0=    0] [>255=    0]

  Average Pixel Luminance (Y):
    Y=[ 49] (range: 0..255)

  Brightest Pixel Search:
    YCC=[ 1071,    0,    0] RGB=[255,255,255] @ MCU[ 34,  2]

  Finished Decoding SCAN Data
    Number of RESTART markers decoded: 0
    Next position in scan buffer: Offset 0x000E0D2F.0

 
*** Marker: EOI (End of Image) (xFFD9) ***
  OFFSET: 0x000E0D2F


*** Searching Compression Signatures ***

  Signature:           015C645021E37D3469A6B652789383DB
  Signature (Rotated): 01D400C125EB43B05762A66347B271F7
  File Offset:         71 bytes
  Chroma subsampling:  Gray
  EXIF Make/Model:     NONE
  EXIF Makernotes:     NONE
  EXIF Software:       NONE

  Searching Compression Signatures: (3347 built-in, 0 user(*) )

          EXIF.Make / Software        EXIF.Model                            Quality           Subsamp Match?
          -------------------------   -----------------------------------   ----------------  --------------
     SW :[IJG Library              ]                                       [090 Gray        ]                  

    The following IJG-based editors also match this signature:
     SW :[GIMP                     ]                                       [090 Gray        ]                  
     SW :[IrfanView                ]                                       [090 Gray        ]                  
     SW :[idImager                 ]                                       [090 Gray        ]                  
     SW :[FastStone Image Viewer   ]                                       [090 Gray        ]                  
     SW :[NeatImage                ]                                       [090 Gray        ]                  
     SW :[Paint.NET                ]                                       [090 Gray        ]                  
     SW :[Photomatix               ]                                       [090 Gray        ]                  
     SW :[XnView                   ]                                       [090 Gray        ]                  

  ASSESSMENT not done as file offset non-zero

*** Additional Info ***
NOTE: Data exists after EOF, range: 0x000E0D31-0x000E1747 (2582 bytes)

*** Exporting JPEG ***
  Exporting from: [C:\Users\daniel\Desktop\TEST_001.sbf]
  Exporting to:   [C:\Users\daniel\Desktop\TEST_001.sbf.export.jpg]
  Export done


Bei dem verlinkten Text geht es im uebrigen um eine andere Kamera/Radargeraet. In der Beispieldatei sind definitv keine 2 Bilder gespeichert. Nach dem EOF marker (FFD9) kommen noch 2582 bytes. Die letzten 128 Bytes koennten ein RSA 1024 Bit Key sein. Es gibt ca. 818 Bytes die thereotisch verschluesselt sein koennen. Die Aussagen aus dem verlinkten Dokument treffen also hier nicht zu. Im Bild selbst befindet sich in der 1. Zeile ueber 8 Bytes noch eine SIS (Secure Image Signature) die aber durch die JPG Kompression nicht mehr ausgewertet werden kann.
Einloggen, um Attachments anzusehen!
_________________
wer andern eine grube gräbt hat ein grubengrabgerät
- oder einfach zu viel zeit