Xmipp  v3.23.11-Nereus
rwIMAGIC.h
Go to the documentation of this file.
1 /*
2  * rwIMAGIC.h
3  *
4  * Created on: May 17, 2010
5  * Author: roberto
6  */
7 /*
8  Base on rwIMAGIC.h
9  Header file for reading and writing Image Science's Imagic files
10  Format: 2D image file format for the program Imagic (Image Science)
11  Author: Bernard Heymann
12  Created: 19990424 Modified: 20011030
13 */
14 
15 #ifndef CORE_RWIMAGIC_H_
16 #define CORE_RWIMAGIC_H_
17 
20 
21 /************************************************************************
22 @Function: readIMAGIC
23 @Description:
24  Reading an IMAGIC image format.
25 @Algorithm:
26  A 2D file format for the IMAGIC package.
27  The header is stored in a separate file with extension ".hed" and
28  a fixed size of 1024 bytes per image.
29  The image data is stored in a single block in a file with the
30  extension ".img".
31  Byte order determination: Year and hour values
32  must be less than 256*256.
33  Data types: PACK = byte, INTG = short, REAL = float,
34  RECO,COMP = complex float.
35  Transform type: Centered (COMP data type)
36  RECO is not a transform
37  Note that the x and y dimensions are interchanged (actually a display issue).
38 @Arguments:
39  Bimage* p the image structure.
40  int select image selection in multi-image file (-1 = all images).
41 @Returns:
42  int error code (<0 means failure).
43 **************************************************************************/
47 int readIMAGIC(size_t img_select);
48 
49 /************************************************************************
50 @Function: writeIMAGIC
51 @Description:
52  Writing an IMAGIC image format.
53 @Algorithm:
54  A file format for the IMAGIC package.
55 @Arguments:
56  Bimage* the image structure.
57 @Returns:
58  int error code (<0 means failure).
59 **************************************************************************/
63 int writeIMAGIC(size_t img_select = ALL_IMAGES, int mode=WRITE_OVERWRITE, const String &bitDepth="", CastWriteMode castMode = CW_CAST);
64 
65 #endif /* RWIMAGIC_H_ */
int writeIMAGIC(size_t img_select=ALL_IMAGES, int mode=WRITE_OVERWRITE, const String &bitDepth="", CastWriteMode castMode=CW_CAST)
void mode
int readIMAGIC(size_t img_select)
std::string String
Definition: xmipp_strings.h:34
#define ALL_IMAGES
CastWriteMode