Image file formats

It seems that every image processing software package has one or more of its own image file formats. Even in packages where external formats have been adopted, changes in those formats literally made them different formats. There are many conversion programs dealing with specific pairwise conversions - not a particularly efficient solution to the user. Bsoft attempts to deal with images as generalized constructs, encapsulating most of the information embedded in the image files in an internal structure. The notion of conversion is now trivial, as reading and writing of multiple file formats are supported. The limiting factor in this is still the limitations within each file format. E.g., you cannot expect file formats designed for single images (such as MRC and EM) to store multiple images (whether 2D or 3D).

Table 5.2. Image file format features (as implemented in Bsoft)

Image formatExtensionsData typesDimensionsFourier/ComplexSampling InfoRemarks
ASCII.asc, .txt(text)3D, singleListNo 
BioRad.picb, u3D, singleNoNoConfocal microscopy
Brix.brxb3D, singleNoIndirectO package, Xtal
Brookhaven STEM.datb2D, double interleavedNoOne valueSTEM corrections applied on reading
CCP4.map, .ccp, .ccp4c, s, f, S, F3D, singleCentered hermitianIndirectXtal
Digital Instruments.dis2D, doubleNoNoNo write support
Digital Micrograph.dm, .dm3b, s, i, f, F2D, singleNoNoProprietary format
Ditabis image plate reader.IPL, .IPH, .IPR, .IPCs, i2D, singleNoTwo valuesMicron package
DSN6.dsn6, .dn6, .omapb3D, singleNoIndirectO package, Xtal
EM.emb, s, i, f3D, singleHermitianNoEM package
Goodford.potf3D, singleNoOne valueElectrostatic potential
GRD.grdb, f3D, singleNoThree valuesBasel MIH format
HKL.hkl(text)3D, singleListNoStructure factor format
Imagic.img (.hed)b, s, f, F2D, multipleCenteredNoHeader in a separate file
Image Magick.miffb (RGB)2D, multipleNoNoX-window display program
JPEG.jpg, .jpegb (RGB)2D, singleNoNoWeb image format
MFF.mffb, f3D, singleNoThree valuesWhatif package
MRC.mrcb, s, f, S, F3D, singleCentered hermitianIndirectMRC package
PIC BP.bpb2D, singleNoNoPIC package
PIF.pifb, s, i, f, S, F3D, multipleBinary listThree valuesPFT/EM3DR package
PNG.pngb, s (RGB)2D, singleNoTwo valuesNetwork image format
Spider.spif3D, multipleHermitianOne valueSpider package
Suprim.spm, .sup, .fb, s, i, f (RGB)3D, singleStandardOne valueSuprim package
TIFF.tif, .tiffb, s, i, f (RGB)3D, multipleNoTwo valuesOnly the byte data type is common

Sampling information: The sampling or voxel/pixel size information is represented as three values (for x, y and z), or two values (TIFF only provides for sampling information in the x and y directions), or one value (for all three directions). Crystallographic formats (such as CCP4 and MRC) give sampling indirectly, calculated from the ratios of the unit cell dimensions and the voxel size of the unit cell (this leads to inaccuracies due to round-off).