#include <polardata.h>
Inheritance diagram for EMAN::PolarData:
Public Member Functions | |
PolarData () | |
PolarData (EMData *image, int xcen, int ycen, string mode) | |
Construct a PolarData object from a EMData. | |
virtual | ~PolarData () |
Private Member Functions | |
vector< int > | Numrinit (int first_ring, int last_ring, int skip, string mode) |
calculate the number of element for each ring | |
int | log2 (int n) |
Returns the smallet power by which 2 has to be raised to obtain an integer kess equal n. | |
vector< float > | ringwe (vector< int > numr, string mode) |
calculate ring weights for rotational alignment | |
Private Attributes | |
map< int, float > | weight |
the ring weights for each radius r |
data on x dimension may be variable size, which is defined in map< int, Xdim > desc_data
Definition at line 140 of file polardata.h.
EMAN::PolarData::PolarData | ( | ) | [inline] |
PolarData::PolarData | ( | EMData * | image, | |
int | xcen, | |||
int | ycen, | |||
string | mode | |||
) |
Construct a PolarData object from a EMData.
image | the EMData object to be converted | |
xcen | the x dimension of the center | |
ycen | the y dimension of the center | |
mode |
Definition at line 86 of file polardata.cpp.
00087 { 00088 // int nsam = image->get_xsize(); 00089 // int nrow = image->get_ysize(); 00090 00091 00092 // int nring = numr.size()/3; 00093 00094 }
virtual EMAN::PolarData::~PolarData | ( | ) | [inline, virtual] |
int EMAN::PolarData::log2 | ( | int | n | ) | [private] |
Returns the smallet power by which 2 has to be raised to obtain an integer kess equal n.
n | int |
vector<int> EMAN::PolarData::Numrinit | ( | int | first_ring, | |
int | last_ring, | |||
int | skip, | |||
string | mode | |||
) | [private] |
calculate the number of element for each ring
first_ring | the ring number for the first ring | |
last_ring | the ring number for the last ring | |
skip | step of ring | |
mode | half mode('H'/'h') or full mode('F'/'f') |
vector<float> EMAN::PolarData::ringwe | ( | vector< int > | numr, | |
string | mode | |||
) | [private] |
calculate ring weights for rotational alignment
numr | number of element for each ring | |
mode | half mode('H'/'h') or full mode('F'/'f') |
map< int, float > EMAN::PolarData::weight [private] |