Bsoft 2.1.4
Bernard's software package
rwEM.cpp File Reference

Functions for reading and writing EM files. More...

#include "rwEM.h"
#include "file_util.h"
#include "utilities.h"

Functions

int readEM (Bimage *p, int readdata)
 Reading a EM map image file format. A 3D image format used in electron microscopy. Header size: 512 bytes (fixed). File format extensions: .em, .EM The identifier is a machine stamp in the first byte: 0 OS-9 1 VAX (VMS little endian) 2 CONVEX (historical) 3 SGI IRIX, Linux (big endian) 4 SUN 5 MAC 6 DEC UNIX, Linux (little endian) (Note: not always implemented - so unreliable) Byte order determination: The z-dimension value must be less than 256*256. Data types: 1 = byte, 2 = short, 4 = int, 5 = float, 8 = complex float. Transform type: Hermitian The x-dimension contains the x-size of the full transform. More...
 
int writeEM (Bimage *p)
 Writing a EM map image file format. A 3D image format used in electron microscopy. More...
 

Variables

int verbose
 

Detailed Description

Functions for reading and writing EM files.

Author
Bernard Heymann
Date
Created: 19990418
Modified: 20120321

Function Documentation

◆ readEM()

int readEM ( Bimage p,
int  readdata 
)

Reading a EM map image file format. A 3D image format used in electron microscopy. Header size: 512 bytes (fixed). File format extensions: .em, .EM The identifier is a machine stamp in the first byte: 0 OS-9 1 VAX (VMS little endian) 2 CONVEX (historical) 3 SGI IRIX, Linux (big endian) 4 SUN 5 MAC 6 DEC UNIX, Linux (little endian) (Note: not always implemented - so unreliable) Byte order determination: The z-dimension value must be less than 256*256. Data types: 1 = byte, 2 = short, 4 = int, 5 = float, 8 = complex float. Transform type: Hermitian The x-dimension contains the x-size of the full transform.

Parameters
*pthe image structure.
readdataflag to activate reading of image data.
Returns
int error code (<0 means failure).

◆ writeEM()

int writeEM ( Bimage p)

Writing a EM map image file format. A 3D image format used in electron microscopy.

Parameters
*pthe image structure.
Returns
int error code (<0 means failure).

Variable Documentation

◆ verbose

int verbose
extern