Xmipp  v3.23.11-Nereus
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_ */
int readEM(size_t select_img, bool isStack=false)
char unused
Definition: rwEM.h:47
int writeEM(size_t select_img=ALL_IMAGES, bool isStack=false, int mode=WRITE_OVERWRITE)
int xdim
Definition: rwEM.h:58
char gPurpose
Definition: rwEM.h:46
int ydim
Definition: rwEM.h:59
int zdim
Definition: rwEM.h:60
char datatype
Definition: rwEM.h:48
Definition: rwEM.h:36
char machine
Definition: rwEM.h:38
void mode
#define ALL_IMAGES