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

Header file for reading and writing SUPRIM files. More...

#include "rwimg.h"

Classes

union  REG
 
struct  SUPRIMhead
 

Macros

#define F_AVG   0
 
#define BACKGROUND   0
 
#define ANG_SAMP   1
 
#define RAD_SAMP   2
 
#define O_ROW_SZ   3
 
#define O_COL_SZ   4
 
#define ROW_ORG   5
 
#define COL_ORG   6
 
#define MASK_RAD   7
 
#define F_NOTE_R   8
 
#define F_NOTE_I   9
 
#define SAMP_DIST   10
 
#define NSLICES   11
 
#define ENL_BP   12
 
#define X_FMAX   12
 
#define THE_BP   13
 
#define PHI_BP   14
 
#define FOUR_TR_CEN   15
 
#define GSBAR   15
 
#define X_NIMA   16
 
#define SYMP2   17
 
#define X_NPIX   17
 
#define X_NCLU   18
 
#define X_NCTR   19
 
#define X_NAME   20
 
#define X_LNAM   21
 
#define X_NTRM   21
 
#define X_NFAC   22
 
#define X_NTYP   23
 
#define FRTHDIM   24
 
#define X_NIMI   26
 
#define X_UFAC   27
 
#define X_WALL   28
 
#define SLICE_ORG   29
 
#define NUM_POLYS   31
 
#define X_FBEG   32
 
#define PSI_BP   40
 
#define X_TRP   70
 
#define R_ANGX   81
 
#define R_ANGY   82
 
#define R_ANGZ   83
 
#define R_NPROJ   84
 
#define XGLOB   90
 
#define YGLOB   91
 
#define ROTGLOB   92
 
#define XX_CELL   93
 
#define XY_CELL   94
 
#define YX_CELL   95
 
#define YY_CELL   96
 
#define IR_WINID   97
 
#define O_SLICE_SZ   98
 
#define CALIB   99
 
#define NAV   100
 
#define SUPRIMSIZE   548
 
#define MAXREG   128
 

Functions

int readSUPRIM (Bimage *p, int readdata)
 Reading a SUPRIM map image file format. A 3D image format used in electron microscopy. Header size: 36 bytes basic fields 512 bytes additional fields called "registers" up to 1024 bytes of "trace" records File format extensions: .spm, .sup Byte order determination: Version and third dimension values must be less than 256*256. Data types: 1 = byte, 2 = float, 3 = complex float, 4 = run-length-encoded float, 5 = short, 6 = RGB, 7 = int, 8 = double. Transform type: Standard. More...
 
int writeSUPRIM (Bimage *p)
 Writing a SUPRIM map image file format. A 3D image format used in electron microscopy. More...
 

Detailed Description

Header file for reading and writing SUPRIM files.

Author
Bernard Heymann
Date
Created: 19990930
Modified: 20050705
Format: 3D image file format for the SUPRIM package

Macro Definition Documentation

◆ ANG_SAMP

#define ANG_SAMP   1

◆ BACKGROUND

#define BACKGROUND   0

◆ CALIB

#define CALIB   99

◆ COL_ORG

#define COL_ORG   6

◆ ENL_BP

#define ENL_BP   12

◆ F_AVG

#define F_AVG   0

◆ F_NOTE_I

#define F_NOTE_I   9

◆ F_NOTE_R

#define F_NOTE_R   8

◆ FOUR_TR_CEN

#define FOUR_TR_CEN   15

◆ FRTHDIM

#define FRTHDIM   24

◆ GSBAR

#define GSBAR   15

◆ IR_WINID

#define IR_WINID   97

◆ MASK_RAD

#define MASK_RAD   7

◆ MAXREG

#define MAXREG   128

◆ NAV

#define NAV   100

◆ NSLICES

#define NSLICES   11

◆ NUM_POLYS

#define NUM_POLYS   31

◆ O_COL_SZ

#define O_COL_SZ   4

◆ O_ROW_SZ

#define O_ROW_SZ   3

◆ O_SLICE_SZ

#define O_SLICE_SZ   98

◆ PHI_BP

#define PHI_BP   14

◆ PSI_BP

#define PSI_BP   40

◆ R_ANGX

#define R_ANGX   81

◆ R_ANGY

#define R_ANGY   82

◆ R_ANGZ

#define R_ANGZ   83

◆ R_NPROJ

#define R_NPROJ   84

◆ RAD_SAMP

#define RAD_SAMP   2

◆ ROTGLOB

#define ROTGLOB   92

◆ ROW_ORG

#define ROW_ORG   5

◆ SAMP_DIST

#define SAMP_DIST   10

◆ SLICE_ORG

#define SLICE_ORG   29

◆ SUPRIMSIZE

#define SUPRIMSIZE   548

◆ SYMP2

#define SYMP2   17

◆ THE_BP

#define THE_BP   13

◆ X_FBEG

#define X_FBEG   32

◆ X_FMAX

#define X_FMAX   12

◆ X_LNAM

#define X_LNAM   21

◆ X_NAME

#define X_NAME   20

◆ X_NCLU

#define X_NCLU   18

◆ X_NCTR

#define X_NCTR   19

◆ X_NFAC

#define X_NFAC   22

◆ X_NIMA

#define X_NIMA   16

◆ X_NIMI

#define X_NIMI   26

◆ X_NPIX

#define X_NPIX   17

◆ X_NTRM

#define X_NTRM   21

◆ X_NTYP

#define X_NTYP   23

◆ X_TRP

#define X_TRP   70

◆ X_UFAC

#define X_UFAC   27

◆ X_WALL

#define X_WALL   28

◆ XGLOB

#define XGLOB   90

◆ XX_CELL

#define XX_CELL   93

◆ XY_CELL

#define XY_CELL   94

◆ YGLOB

#define YGLOB   91

◆ YX_CELL

#define YX_CELL   95

◆ YY_CELL

#define YY_CELL   96

Function Documentation

◆ readSUPRIM()

int readSUPRIM ( Bimage p,
int  readdata 
)

Reading a SUPRIM map image file format. A 3D image format used in electron microscopy. Header size: 36 bytes basic fields 512 bytes additional fields called "registers" up to 1024 bytes of "trace" records File format extensions: .spm, .sup Byte order determination: Version and third dimension values must be less than 256*256. Data types: 1 = byte, 2 = float, 3 = complex float, 4 = run-length-encoded float, 5 = short, 6 = RGB, 7 = int, 8 = double. Transform type: Standard.

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

◆ writeSUPRIM()

int writeSUPRIM ( Bimage p)

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

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