#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 6743 of file processor.h.
|
Get the descrition of this specific processor. This function must be overwritten by a subclass.
Implements EMAN::Processor. Definition at line 6765 of file processor.h.
|
|
Get the processor's name. Each processor is identified by a unique name.
Implements EMAN::Processor. Definition at line 6748 of file processor.h. References NAME. 06749 { 06750 return NAME; 06751 }
|
|
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 6758 of file processor.h. References EMAN::EMObject::INT, and EMAN::TypeDict::put(). 06759 { 06760 TypeDict d; 06761 d.put("dir", EMObject::INT, "1 for forward transform, -1 for inverse transform"); 06762 return d; 06763 }
|
|
Definition at line 6753 of file processor.h. 06754 { 06755 return new FFTProcessor(); 06756 }
|
|
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.
Implements EMAN::Processor. Definition at line 7980 of file processor.cpp. References EMAN::EMData::do_fft_inplace(), EMAN::EMData::do_ift_inplace(), EMAN::Dict::has_key(), and EMAN::Processor::params. 07981 { 07982 if( params.has_key("dir") ) { 07983 if ((int)params["dir"]==-1) { 07984 image->do_ift_inplace(); 07985 } 07986 else { 07987 image->do_fft_inplace(); 07988 } 07989 } 07990 }
|
|
Definition at line 6770 of file processor.h. Referenced by get_name(). |