Xmipp
v3.23.11-Nereus
xmippCore
core
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_ */
WRITE_OVERWRITE
Definition:
xmipp_image_base.h:77
writeIMAGIC
int writeIMAGIC(size_t img_select=ALL_IMAGES, int mode=WRITE_OVERWRITE, const String &bitDepth="", CastWriteMode castMode=CW_CAST)
mode
void mode
Definition:
numerical_recipes.cpp:4411
readIMAGIC
int readIMAGIC(size_t img_select)
String
std::string String
Definition:
xmipp_strings.h:34
ALL_IMAGES
#define ALL_IMAGES
Definition:
xmipp_image_macros.h:37
CastWriteMode
CastWriteMode
Definition:
xmipp_image_base.h:101
CW_CAST
Definition:
xmipp_image_base.h:104
Generated by
1.8.13