Bsoft 2.1.4
Bernard's software package
rwDI.h File Reference

Header file for reading (only) Digital Instruments files. More...

#include "rwimg.h"

Macros

#define DISIZE   20480
 

Functions

int readDI (Bimage *p, int readdata, int img_select)
 Reading a Digital Instruments image file format. A two-image 2D image format used in Digital Instruments atomic force microscopes. The header is text varying with the version of DI software, which may be 4,8,12,20K and is supposed to be read from the header itself. The header contains the following keywords (tags): image list: presumably one entry per image Data offset: offset to start of data, may however be incorrect if the file was transferred with ftp as text Data length: total length of data block Samps/line: samples per line (x-dimension) Number of lines: lines (y-dimension) list end: end of header File format extensions: .di, .DI Byte order: Always little endian because the DI software runs on Intel machines and there is no way to detect byte order from the text header. Data type: short. More...
 

Detailed Description

Header file for reading (only) Digital Instruments files.

Author
Bernard Heymann
Date
Created: 19990424
Modified: 20010410
Format: 2D image file format for AFM (Digital Instruments)

Macro Definition Documentation

◆ DISIZE

#define DISIZE   20480

Function Documentation

◆ readDI()

int readDI ( Bimage p,
int  readdata,
int  img_select 
)

Reading a Digital Instruments image file format. A two-image 2D image format used in Digital Instruments atomic force microscopes. The header is text varying with the version of DI software, which may be 4,8,12,20K and is supposed to be read from the header itself. The header contains the following keywords (tags): image list: presumably one entry per image Data offset: offset to start of data, may however be incorrect if the file was transferred with ftp as text Data length: total length of data block Samps/line: samples per line (x-dimension) Number of lines: lines (y-dimension) list end: end of header File format extensions: .di, .DI Byte order: Always little endian because the DI software runs on Intel machines and there is no way to detect byte order from the text header. Data type: short.

Parameters
*pthe image structure.
readdataflag to activate reading of image data.
img_selectimage selection in multi-image file (-1 = all images).
Returns
int error code (<0 means failure).