EMAN2
Public Member Functions | Private Member Functions | Private Attributes
EMAN::PolarData Class Reference

a specialized image class for storing the results of a transform from EMData to polar coordinates, currently support 2D only. More...

#include <polardata.h>

Inheritance diagram for EMAN::PolarData:
Inheritance graph
[legend]
Collaboration diagram for EMAN::PolarData:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

a specialized image class for storing the results of a transform from EMData to polar coordinates, currently support 2D only.

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.


Constructor & Destructor Documentation

EMAN::PolarData::PolarData ( ) [inline]

Definition at line 143 of file polardata.h.

{printf("Welcome to PolarData class... \n");}
PolarData::PolarData ( EMData image,
int  xcen,
int  ycen,
string  mode 
)

Construct a PolarData object from a EMData.

Parameters:
imagethe EMData object to be converted
xcenthe x dimension of the center
ycenthe y dimension of the center
mode

Definition at line 86 of file polardata.cpp.

{
//      int nsam = image->get_xsize();
//      int nrow = image->get_ysize();
        
        
//      int nring = numr.size()/3; 
                
}
virtual EMAN::PolarData::~PolarData ( ) [inline, virtual]

Definition at line 153 of file polardata.h.

                                     {
                        printf("Destructor of PolarData...\n");
                }

Member Function Documentation

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.

Parameters:
nint
Returns:
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

Parameters:
first_ringthe ring number for the first ring
last_ringthe ring number for the last ring
skipstep of ring
modehalf mode('H'/'h') or full mode('F'/'f')
Returns:
the vector for number of elements of each ring
vector<float> EMAN::PolarData::ringwe ( vector< int >  numr,
string  mode 
) [private]

calculate ring weights for rotational alignment

Parameters:
numrnumber of element for each ring
modehalf mode('H'/'h') or full mode('F'/'f')
Returns:
vector<float> the weight for each ring

Member Data Documentation

map< int, float > EMAN::PolarData::weight [private]

the ring weights for each radius r

Definition at line 171 of file polardata.h.


The documentation for this class was generated from the following files: