Functions for reading and writing RAW files.
More...
#include "rwRAW.h"
#include "utilities.h"
Go to the source code of this file.
Functions for reading and writing RAW files.
- Author
- Bernard Heymann
- Date
- Created: 19990724
-
Modified: 20150910
A RAW file is a generalized image file defined as consisting of an optional header,
and a contiguous, non-compressed block of data
Definition in file rwRAW.cpp.
◆ readRAW()
| int readRAW |
( |
Bimage * |
p, |
|
|
int |
img_select |
|
) |
| |
Reading a raw block of data in a file.
- Parameters
-
| *p | the image structure. |
| img_select | image selection in multi-image file (-1 = all images). |
- Returns
- int 0. A 5D format for generalized access to data in Bsoft. File format extensions: .raw and # The special symbol '#' appended to a valid file name is taken to indicate that the file should be interpreted as a raw data block. To further specify how the data block should be read, several variable-value pairs can be appended, each pair started with a '#'. Variable-value pairs: h=header_size d=data_type x=size_x,size_y,size_z p=page_size_x,page_size_y,page_size_z a=padding_bytes_between_pages s=sampling_x,sampling_y,sampling_z c=number_of_channels n=number_of_images i=image_selected f=transform_type (n=NoTransform, s=Standard, c=Centered, h=Hermitian, q=CentHerm) b=1=swap_bytes v=1=vax_floating_point
Definition at line 44 of file rwRAW.cpp.
◆ writeRAW()
Writing a raw block of data in a file.
- Parameters
-
- Returns
- int 0. A 5D format for generalized access to data in Bsoft.
Definition at line 192 of file rwRAW.cpp.
◆ verbose