Xmipp  v3.23.11-Nereus
image_resize.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Authors: Joaquin Oton (joton@cnb.csic.es)
3  * J.M. De la Rosa (jmdelarosa@cnb.csic.es)
4  *
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 IMAGE_RESIZE_H
28 #define IMAGE_RESIZE_H
29 
30 #include "core/matrix1d.h"
33 
34 
36 constexpr signed int INTERP_FOURIER = -1;
41 {
42 public:
46 
47 protected:
49 
51  int dim;
54  bool isVol;
56  //Matrix2D<double> R, T, S, A, B;
60 
61  void defineParams();
62  void readParams();
63  void preProcess();
64  void postProcess();
65  void processImage(const FileName &fnImg, const FileName &fnImgOut, const MDRow &rowIn, MDRow &rowOut);
66 
67 };
69 #endif //IMAGE_RESIZE_H
void processImage(const FileName &fnImg, const FileName &fnImgOut, const MDRow &rowIn, MDRow &rowOut)
ScaleType scale_type
Definition: image_resize.h:48
ImageGeneric imgOut
Definition: image_resize.h:59
ScaleType
Definition: image_resize.h:35
Matrix1D< double > resizeFactor
Definition: image_resize.h:57
ImageGeneric img
Definition: image_resize.h:58
constexpr signed int INTERP_FOURIER
Definition: image_resize.h:36