#include <processor.h>
Inheritance diagram for EMAN::NormalizeUnitProcessor:
Public Member Functions | |
string | get_name () const |
Get the processor's name. | |
string | get_desc () const |
Get the descrition of this specific processor. | |
Static Public Member Functions | |
Processor * | NEW () |
Static Public Attributes | |
const string | NAME = "normalize.unitlen" |
Protected Member Functions | |
float | calc_sigma (EMData *image) const |
float | calc_mean (EMData *image) const |
Definition at line 3953 of file processor.h.
|
Implements EMAN::NormalizeProcessor. Definition at line 3978 of file processor.h. 03978 { return 0; }
|
|
Reimplemented from EMAN::NormalizeProcessor. Definition at line 3431 of file processor.cpp. References EMAN::EMData::get_attr(), LOGWARN, and sqrt(). 03432 { 03433 if (!image) { 03434 LOGWARN("NULL Image"); 03435 return 0; 03436 } 03437 float ret=sqrt((float)image->get_attr("square_sum")); 03438 return ret==0.0f?1.0f:ret; 03439 }
|
|
Get the descrition of this specific processor. This function must be overwritten by a subclass.
Implements EMAN::Processor. Definition at line 3966 of file processor.h. 03967 { 03968 return "Normalize an image so its vector length is 1.0."; 03969 }
|
|
Get the processor's name. Each processor is identified by a unique name.
Implements EMAN::Processor. Definition at line 3956 of file processor.h. 03957 {
03958 return NAME;
03959 }
|
|
Definition at line 3961 of file processor.h. 03962 { 03963 return new NormalizeUnitProcessor(); 03964 }
|
|
Definition at line 140 of file processor.cpp. |