IFZ: OMRON-Dateiformat unbekannt IFZ: unknown file format by Omron Kamera: 2448 x 2044 x 8 bit Used camera image size: 2448 x 2044 x 8 bit ergibt 5003712 Bytes result to 5003712 raw image bytes Dateigröße: 5003752 (40 Byte Header) file size is 5003752, so header size is 40 byte struct IFZHDR{ DWORD signature; // FFFFFFFE DWORD notsignature; // 00000001 DWORD mosaic; // 0000000A DWORD width; // 00000990 = 2448 DWORD height; // 000007FC = 2044 DWORD unk_0[2]; // 00000000 // 00000000 DWORD width1; // 00000990 possibly designating number of bytes per line DWORD height1; // 000007FC DWORD size8; // 004C59E0 = 5003744 file size - 8 (for the 2 signature DWORDs) }; Danach folgen die Pixel v.l.n.r, Scanzeilen Following are the pixels from left to right, von oben nach unten. Gespeichert sind scan lines from top to bottom. Each byte Grauwerte, 00 = schwarz, FF = weiß. represent a grey value, 00 = black, FF = white. heha, 120209 Bei Michał Kicman tauchte eine Datei mit unk_a == 0x00000068 auf. Daher wurde der Test auf 0x0000000A aus dem Programm entfernt. [“unk_a” member is now renamed to “mosaic”. See explanation below.] heha, 160519 Farbbilder sind genauso gespeichert, Color images are saved just the same way, nur dass „mosaic“ eine Kennung für die and “mosaic” contains a code for the color Farbfilteraufteilung enthält: filter mask used: 0000000A Grauwerte (sichtbares Licht) gray values (no filtering) 00000067 BG-GR Bayer-Sensor BG-GR Bayer mosaic color filter array 00000068 GB-RG Bayer-Sensor GB-RG Bayer mosaic color filter array Farbbilder werden automatisch als solche Color images are now detected automatically erkannt und in eine dreifach große BMP- and converted to a triple-size BMP file. Datei konvertiert. Die verwendete Eigenbau-Interpolation The self-made “demosaicing” routine hat ein leicht anderes Ergebnis-BMP zur Folge results in slightly different BMP files als das was bei Omron herauskommt. comparing to Omron's output. Thanks to Jérôme Pinard who sent me some necessary example IFZ images and ready-made BMP files. heha, 170727 Noch zwei andere IFZ-Dateien enthielten / Anothr two files contain (left OK, right not OK) DWORD mosaic; // 00000067 DWORD width; // 000002F0 = 752 DWORD height; // 000001E0 = 480 DWORD unk_0[2]; // 00000000 // 00000000 DWORD width1; // 000002F0 DWORD height1; // 000001E0 00000180 = 384 DWORD size8; // 00058220 = 360992 00046820 = 288800 Anscheinend kann man width und height Seems that I must ignore width and height ignorieren und darf nur noch width1 from now on and rely on width1 and height1 und height1 verwenden! only. heha, 200327