Xmipp
v3.23.11-Nereus
xmippCore
core
rwEM.h
Go to the documentation of this file.
1
/***************************************************************************
2
* Authors: Joaquin Oton (joton@cnb.csic.es)
3
*
4
*
5
* Unidad de Bioinformatica of Centro Nacional de Biotecnologia , CSIC
6
*
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 2 of the License, or
10
* (at your option) any later version.
11
*
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
20
* 02111-1307 USA
21
*
22
* All comments concerning this program package may be sent to the
23
* e-mail address 'xmipp@cnb.csic.es'
24
***************************************************************************/
25
26
#ifndef CORE_RWEM_H_
27
#define CORE_RWEM_H_
28
31
36
typedef
struct
37
{
38
char
machine
;
46
char
gPurpose
;
//> General purpose. On OS-9 system: 0 old version 1 is new version
47
char
unused
;
//> Not used in standard EM-format, if this byte is 1 the header is abandoned.
48
char
datatype
;
57
//> Three long integers (3x4 bytes) are image size in x, y, z Dimension
58
int
xdim
;
59
int
ydim
;
60
int
zdim
;
61
char
comment[80];
//> 80 Characters as comment
62
long
int
params[40];
//> 40 long integers (4 x 40 bytes) are user defined parameters
112
char
userdata[256];
//> 256 Byte with userdata, i.e. the username
113
}
114
EMHead
;
115
121
int
readEM
(
size_t
select_img,
bool
isStack=
false
);
122
130
int
writeEM
(
size_t
select_img =
ALL_IMAGES
,
bool
isStack=
false
,
int
mode
=
WRITE_OVERWRITE
);
131
132
133
#endif
/* RWEM_H_ */
readEM
int readEM(size_t select_img, bool isStack=false)
EMHead::unused
char unused
Definition:
rwEM.h:47
WRITE_OVERWRITE
Definition:
xmipp_image_base.h:77
writeEM
int writeEM(size_t select_img=ALL_IMAGES, bool isStack=false, int mode=WRITE_OVERWRITE)
EMHead::xdim
int xdim
Definition:
rwEM.h:58
EMHead::gPurpose
char gPurpose
Definition:
rwEM.h:46
EMHead::ydim
int ydim
Definition:
rwEM.h:59
EMHead::zdim
int zdim
Definition:
rwEM.h:60
EMHead::datatype
char datatype
Definition:
rwEM.h:48
EMHead
Definition:
rwEM.h:36
EMHead::machine
char machine
Definition:
rwEM.h:38
mode
void mode
Definition:
numerical_recipes.cpp:4411
ALL_IMAGES
#define ALL_IMAGES
Definition:
xmipp_image_macros.h:37
Generated by
1.8.13