Xmipp
v3.23.11-Nereus
xmipp
libraries
data
transform_geometry.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 TRANSFORMGEOMETRY_H
28
#define TRANSFORMGEOMETRY_H
29
30
#include "
core/matrix2d.h
"
31
#include "
core/xmipp_metadata_program.h
"
32
#include "
core/xmipp_image.h
"
33
#include "
core/xmipp_image_generic.h
"
34
38
class
ProgTransformGeometry
:
public
XmippMetadataProgram
39
{
40
public
:
42
ProgTransformGeometry
();
43
~ProgTransformGeometry
();
44
45
protected
:
46
int
splineDegree
,
dim
;
47
bool
applyTransform
,
inverse
,
wrap
,
isVol
,
flip
,
mdVol
;
48
Matrix2D<double>
R
,
A
,
B
,
T
;
49
ImageGeneric
img
,
imgOut
;
50
String
matrixStr
;
// To read directly the matrix
51
52
void
defineParams
();
53
void
readParams
();
54
57
void
calculateRotationMatrix
();
58
void
preProcess
();
59
void
processImage
(
const
FileName
&fnImg,
const
FileName
&fnImgOut,
const
MDRow
&rowIn,
MDRow
&rowOut);
60
};
62
#endif //TRANSFORMGEOMETRY_H
ProgTransformGeometry::T
Matrix2D< double > T
Definition:
transform_geometry.h:48
ProgTransformGeometry::ProgTransformGeometry
ProgTransformGeometry()
Definition:
transform_geometry.cpp:30
ProgTransformGeometry::A
Matrix2D< double > A
Definition:
transform_geometry.h:48
xmipp_metadata_program.h
ProgTransformGeometry::defineParams
void defineParams()
Definition:
transform_geometry.cpp:36
ProgTransformGeometry::flip
bool flip
Definition:
transform_geometry.h:47
ProgTransformGeometry::preProcess
void preProcess()
Definition:
transform_geometry.cpp:170
ProgTransformGeometry::matrixStr
String matrixStr
Definition:
transform_geometry.h:50
FileName
Definition:
xmipp_filename.h:65
ProgTransformGeometry::B
Matrix2D< double > B
Definition:
transform_geometry.h:48
ProgTransformGeometry::wrap
bool wrap
Definition:
transform_geometry.h:47
ProgTransformGeometry::~ProgTransformGeometry
~ProgTransformGeometry()
Definition:
transform_geometry.cpp:33
Matrix2D< double >
xmipp_image.h
ProgTransformGeometry::calculateRotationMatrix
void calculateRotationMatrix()
Definition:
transform_geometry.cpp:128
xmipp_image_generic.h
ProgTransformGeometry
Definition:
transform_geometry.h:38
ProgTransformGeometry::readParams
void readParams()
Definition:
transform_geometry.cpp:97
ProgTransformGeometry::isVol
bool isVol
Definition:
transform_geometry.h:47
ProgTransformGeometry::splineDegree
int splineDegree
Definition:
transform_geometry.h:46
matrix2d.h
ProgTransformGeometry::mdVol
bool mdVol
Definition:
transform_geometry.h:47
ImageGeneric
Definition:
xmipp_image_generic.h:47
XmippMetadataProgram
Definition:
xmipp_metadata_program.h:44
String
std::string String
Definition:
xmipp_strings.h:34
MDRow
Definition:
metadata_row_base.h:53
ProgTransformGeometry::img
ImageGeneric img
Definition:
transform_geometry.h:49
ProgTransformGeometry::inverse
bool inverse
Definition:
transform_geometry.h:47
ProgTransformGeometry::imgOut
ImageGeneric imgOut
Definition:
transform_geometry.h:49
ProgTransformGeometry::dim
int dim
Definition:
transform_geometry.h:46
ProgTransformGeometry::R
Matrix2D< double > R
Definition:
transform_geometry.h:48
ProgTransformGeometry::processImage
void processImage(const FileName &fnImg, const FileName &fnImgOut, const MDRow &rowIn, MDRow &rowOut)
Definition:
transform_geometry.cpp:211
ProgTransformGeometry::applyTransform
bool applyTransform
Definition:
transform_geometry.h:47
Generated by
1.8.13