Xmipp
v3.23.11-Nereus
|
#include <basis.h>
Public Types | |
enum | tBasisFunction { blobs, voxels, splines } |
Type of basis function. More... | |
Public Member Functions | |
Basis () | |
Empty constructor. By default, blobs. More... | |
void | setDefault () |
Default values. More... | |
String | basisName () const |
Basis name. More... | |
void | read (int argc, char **argv) |
void | read (const FileName &fn) |
void | readParams (XmippProgram *program) |
void | produceSideInfo (const Grid &grid) |
void | setSamplingRate (double _Tm) |
void | setD (Matrix2D< double > *_D) |
double | maxLength () const |
void | changeToVoxels (GridVolume &vol_basis, MultidimArray< double > *vol_voxels, int Zdim, int Ydim, int Xdim, int threads=1) const |
void | changeFromVoxels (const MultidimArray< double > &vol_voxels, GridVolume &vol_basis, int grid_type, double grid_relative_size, const MultidimArray< double > *vol_mask, const Matrix2D< double > *D, double R, int threads=1) const |
double | valueAt (const Matrix1D< double > &r) const |
double | projectionAt (const Matrix1D< double > &u, const Matrix1D< double > &r) const |
Static Public Member Functions | |
static void | defineParams (XmippProgram *program, const char *prefix=NULL, const char *comment=NULL) |
Public Attributes | |
tBasisFunction | type |
Basis function to use. More... | |
MultidimArray< double > * | VolPSF |
Footprint is convolved with a volume PSF // At this moment only used with blobs. More... | |
double | Tm |
Sampling rate. More... | |
struct blobtype | blob |
Blob parameters. More... | |
double | grid_relative_size |
Relative size for the grid. More... | |
Matrix2D< double > * | D |
ImageOver | blobprint |
Blob footprint. More... | |
ImageOver | blobprint2 |
Square of the footprint. More... | |
double | sum_on_grid |
Sum of the basis on the grid points. More... | |
Matrix1D< double > | aux |
Auxiliary vector for projections. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &out, const Basis &basis) |
Show. More... | |
Type of basis function.
Enumerator | |
---|---|
blobs | |
voxels | |
splines |
String Basis::basisName | ( | ) | const |
Basis name.
void Basis::changeFromVoxels | ( | const MultidimArray< double > & | vol_voxels, |
GridVolume & | vol_basis, | ||
int | grid_type, | ||
double | grid_relative_size, | ||
const MultidimArray< double > * | vol_mask, | ||
const Matrix2D< double > * | D, | ||
double | R, | ||
int | threads = 1 |
||
) | const |
Change basis from voxels. A voxel volume is provided, then the output vol_basis will be shaped to represent this voxel volume. If the volume is already in voxels, then the mask and the radius mask are applied.
Definition at line 292 of file basis.cpp.
void Basis::changeToVoxels | ( | GridVolume & | vol_basis, |
MultidimArray< double > * | vol_voxels, | ||
int | Zdim, | ||
int | Ydim, | ||
int | Xdim, | ||
int | threads = 1 |
||
) | const |
Change basis to voxels. This function takes a grid volume in the basis indicated in this object and translates it into voxels of the given size. If the volume is already in voxels a padding is done so that the output is of the given size and the basis volume is in the center.
Definition at line 261 of file basis.cpp.
|
static |
Definition of paramaters
Definition at line 69 of file basis.cpp.
double Basis::maxLength | ( | ) | const |
Max length of the basis. This is the maximum distance between the center of the basis and its further point.
void Basis::produceSideInfo | ( | const Grid & | grid | ) |
Produce side information. You must provide the grid in which this basis function will live
Definition at line 162 of file basis.cpp.
Projection at a given direction (u) with a given point (r).
Definition at line 367 of file basis.cpp.
void Basis::read | ( | int | argc, |
char ** | argv | ||
) |
Read parameters from a command line. This function reads the parameters from a command line defined by argc and argv. An exception might be thrown by any of the internal conversions, this would mean that there is an error in the command line and you might show a usage message.
void Basis::read | ( | const FileName & | fn | ) |
Read parameters from a file. An exception is thrown if the file cannot be open
void Basis::readParams | ( | XmippProgram * | program | ) |
Read the parameters from the command line
Definition at line 100 of file basis.cpp.
|
inline |
Set D. D is the deformation matrix used for crystals.
void Basis::setDefault | ( | ) |
Default values.
Definition at line 36 of file basis.cpp.
void Basis::setSamplingRate | ( | double | _Tm | ) |
double Basis::valueAt | ( | const Matrix1D< double > & | r | ) | const |
Basis value at a given point.
Definition at line 332 of file basis.cpp.
|
friend |
Show.
Matrix1D<double> Basis::aux |
Matrix2D<double>* Basis::D |
Volume deformation matrix. See the documentation of BasicARTParameters for further explanation.
double Basis::sum_on_grid |
tBasisFunction Basis::type |
MultidimArray<double>* Basis::VolPSF |