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

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

#include "rwBRIX.h"
#include "utilities.h"

Functions

int readBRIX (Bimage *p, int readdata)
 Reading a BRIX image file format. More...
 
int writeBRIX (Bimage *p)
 Writing a BRIX image file format. More...
 

Variables

int verbose
 

Detailed Description

Functions for reading and writing BRIX files.

Author
Bernard Heymann
Date
Created: 19990424
Modified: 20150130

Function Documentation

◆ readBRIX()

int readBRIX ( Bimage p,
int  readdata 
)

Reading a BRIX image file format.

Parameters
*pthe image structure.
readdataflag to activate reading of image data.
Returns
int error code (<0 means failure). A 3D image format intended for use with the 'O' program. It has a text header of 512 bytes (fixed size). File format extension: .brx. Identifier: ':-)' (byte 0). Data type: byte, packed as 8x8x8 pages. The header specifies the following keywords: origin: origin extent: size in pixels grid: unit cell size in pixels cell: unit cell parameters in angstroms and degrees prod: scale to convert original map to byte plus: average sigma: standard deviation of original map The voxel size is given by the unit cell size divided by the grid size (Since the unit cell size may not fit exactly onto the grid, the voxel size as calculated from the unit cell size and grid may not be accurate).

◆ writeBRIX()

int writeBRIX ( Bimage p)

Writing a BRIX image file format.

Parameters
*pthe image structure.
Returns
int error code (<0 means failure). A 3D image format intended for use with the 'O' program.

Variable Documentation

◆ verbose

int verbose
extern