Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

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.

00143 {printf("Welcome to PolarData class... \n");}

PolarData::PolarData EMData image,
int  xcen,
int  ycen,
string  mode
 

Construct a PolarData object from a EMData.

Parameters:
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]
 

Definition at line 153 of file polardata.h.

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


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:
n int
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_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')
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:
numr number of element for each ring
mode half 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:
Generated on Tue Jun 11 13:48:15 2013 for EMAN2 by  doxygen 1.3.9.1