Xmipp
v3.23.11-Nereus
|
#include <polar.h>
Public Member Functions | |
Polar () | |
Polar (const Polar &P) | |
~Polar () | |
Polar & | operator= (const Polar &P) |
Polar & | operator- (const T val) const |
Polar & | operator+ (const T val) |
Polar & | operator* (const T val) |
Polar & | operator/ (const T val) |
void | operator-= (const T val) |
void | operator+= (const T val) |
void | operator*= (const T val) |
void | operator/= (const T val) |
Polar & | operator-= (const Polar< T > in) |
Polar & | operator+= (const Polar< T > in) |
Polar & | operator*= (const Polar< T > in) |
Polar & | operator/= (const Polar< T > in) |
void | rename (const FileName &newName) |
void | clear () |
const FileName & | name () const |
int | getRingNo () const |
int | getMode () const |
double | getOversample () const |
int | getSampleNo (int iring) const |
int | getSampleNoOuterRing () const |
double | getRadius (int iring) const |
MultidimArray< T > & | getRing (int i) |
const MultidimArray< T > & | getRing (int i) const |
void | setRing (int i, MultidimArray< T > val) |
T & | getPixel (int r, int f) const |
T & | operator() (int r, int f) const |
void | setPixel (int r, int f, T val) const |
void | computeAverageAndStddev (double &avg, double &stddev, int mode=FULL_CIRCLES) const |
void | normalize (double average, double stddev) |
void | getCartesianCoordinates (std::vector< double > &x, std::vector< double > &y, std::vector< T > &data, const int extra_shell=GRIDDING_K/2) |
void | getPolarFromCartesianBSpline (const MultidimArray< T > &M1, int first_ring, int last_ring, int BsplineOrder=3, double xoff=0., double yoff=0., double oversample1=1., int mode1=FULL_CIRCLES) |
void | calculateFftwPlans (Polar_fftw_plans &out) |
Public Attributes | |
int | mode |
double | oversample |
std::vector< double > | ring_radius |
std::vector< MultidimArray< T > > | rings |
Protected Attributes | |
FileName | fn_pol |
Class for polar coodinates
|
inline |
Precalculate a vector with FFTW plans for all rings
Definition at line 708 of file polar.h.
|
inline |
|
inline |
Compute sum or average of all pixels in polar rings.
Definition at line 488 of file polar.h.
|
inline |
Definition at line 559 of file polar.h.
|
inline |
Mode access
This function is used to know the "mode" of the polar.
There are two modes: FULL_CIRCLES = 0 (used for asymmetric functions) HALF_CIRCLES = 0 (used for symmetric functions, e.g. Fourier transforms)
|
inline |
Oversample access
This function is used to know the oversampling factor of the polar.
Oversample = 1 means there is no oversampling Oversample > 1 means oversampling Oversampling < 1 means undersampling
|
inline |
|
inline |
Convert cartesian MultidimArray to Polar using B-spline interpolation
The input MultidimArray is assumed to be pre-processed for B-splines
Definition at line 625 of file polar.h.
|
inline |
|
inline |
1D Matrix access
This operator can be used to access any ring of the polar as MultidimArray.
Definition at line 412 of file polar.h.
|
inline |
|
inline |
|
inline |
|
inline |
Name access
This function is used to know the name of the polar. It cannot be used to assign a new one. You may use rename() for that.
|
inline |
Definition at line 536 of file polar.h.
|
inline |
Multiply by a constant pixel-by-pixel
Definition at line 160 of file polar.h.
|
inline |
Multiply by a constant pixel-by-pixel
Definition at line 212 of file polar.h.
|
inline |
|
inline |
Subtract a constant pixel-by-pixel
Definition at line 186 of file polar.h.
|
inline |
Divide by a constant pixel-by-pixel
Definition at line 225 of file polar.h.
|
inline |
|
inline |
1D Matrix access
This operator can be used to set any ring of the polar with a MultidimArray.
Definition at line 430 of file polar.h.
std::vector<double> Polar< T >::ring_radius |
std::vector<MultidimArray<T> > Polar< T >::rings |