#include <processor.h>
Inheritance diagram for EMAN::FFTProcessor:
Public Member Functions | |
void | process_inplace (EMData *image) |
To process an image in-place. | |
string | get_name () const |
Get the processor's name. | |
TypeDict | get_param_types () const |
Get processor parameter information in a dictionary. | |
string | get_desc () const |
Get the descrition of this specific processor. | |
Static Public Member Functions | |
static Processor * | NEW () |
Static Public Attributes | |
static const string | NAME = "basis.fft" |
dir | 1 for forward transform, -1 for inverse transform, forward transform by default |
Definition at line 6749 of file processor.h.
string EMAN::FFTProcessor::get_desc | ( | ) | const [inline, virtual] |
Get the descrition of this specific processor.
This function must be overwritten by a subclass.
Implements EMAN::Processor.
Definition at line 6771 of file processor.h.
string EMAN::FFTProcessor::get_name | ( | ) | const [inline, virtual] |
Get the processor's name.
Each processor is identified by a unique name.
Implements EMAN::Processor.
Definition at line 6754 of file processor.h.
References NAME.
06755 { 06756 return NAME; 06757 }
TypeDict EMAN::FFTProcessor::get_param_types | ( | ) | const [inline, virtual] |
Get processor parameter information in a dictionary.
Each parameter has one record in the dictionary. Each record contains its name, data-type, and description.
Reimplemented from EMAN::Processor.
Definition at line 6764 of file processor.h.
References EMAN::EMObject::INT, and EMAN::TypeDict::put().
06765 { 06766 TypeDict d; 06767 d.put("dir", EMObject::INT, "1 for forward transform, -1 for inverse transform"); 06768 return d; 06769 }
static Processor* EMAN::FFTProcessor::NEW | ( | ) | [inline, static] |
void FFTProcessor::process_inplace | ( | EMData * | image | ) | [virtual] |
To process an image in-place.
For those processors which can only be processed out-of-place, override this function to just print out some error message to remind user call the out-of-place version.
image | The image to be processed. |
Implements EMAN::Processor.
Definition at line 8082 of file processor.cpp.
References EMAN::EMData::do_fft_inplace(), EMAN::EMData::do_ift_inplace(), EMAN::Dict::has_key(), and EMAN::Processor::params.
08083 { 08084 if( params.has_key("dir") ) { 08085 if ((int)params["dir"]==-1) { 08086 image->do_ift_inplace(); 08087 } 08088 else { 08089 image->do_fft_inplace(); 08090 } 08091 } 08092 }
const string FFTProcessor::NAME = "basis.fft" [static] |