Xmipp  v3.23.11-Nereus
image_odd_even.h
Go to the documentation of this file.
1 /***************************************************************************
2  *
3  * Authors: Jose Luis Vilas, jlvilas@cnb.csic.es
4  * Carlos Oscar S. Sorzano coss@cnb.csic.es (2019)
5  *
6  * Unidad de Bioinformatica of Centro Nacional de Biotecnologia , CSIC
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
21  * 02111-1307 USA
22  *
23  * All comments concerning this program package may be sent to the
24  * e-mail address 'xmipp@cnb.csic.es'
25  ***************************************************************************/
26 
27 #ifndef _PROG_SPLIT_ODD_EVEN
28 #define _PROG_SPLIT_ODD_EVEN
29 
30 #include <iostream>
31 #include <core/xmipp_program.h>
32 #include <core/xmipp_image.h>
33 #include <string>
35 
41 class ProgOddEven : public XmippProgram
42 {
43 private:
45  FileName fnOut_odd, fnOut_even, fnImg, splitType;
46  bool sumFrames;
47 
48 private:
49  void defineParams();
50  void readParams();
51  // This function generates the metadata associated to the input image stack
52  void fromimageToMd(FileName fnImg, MetaData &movienew, size_t &Xdim, size_t &Ydim);
53  void run();
54 
55 
56 };
58 #endif
59