#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 4123 of file processor.h.
|
Implements EMAN::NormalizeProcessor. Definition at line 4148 of file processor.h. 04148 { return 0; }
|
|
Reimplemented from EMAN::NormalizeProcessor. Definition at line 3585 of file processor.cpp. References EMAN::EMData::get_attr(), LOGWARN, and sqrt(). 03586 { 03587 if (!image) { 03588 LOGWARN("NULL Image"); 03589 return 0; 03590 } 03591 float ret=sqrt((float)image->get_attr("square_sum")); 03592 return ret==0.0f?1.0f:ret; 03593 }
|
|
Get the descrition of this specific processor. This function must be overwritten by a subclass.
Implements EMAN::Processor. Definition at line 4136 of file processor.h. 04137 { 04138 return "Normalize an image so its vector length is 1.0."; 04139 }
|
|
Get the processor's name. Each processor is identified by a unique name.
Implements EMAN::Processor. Definition at line 4126 of file processor.h. 04127 {
04128 return NAME;
04129 }
|
|
Definition at line 4131 of file processor.h. 04132 { 04133 return new NormalizeUnitProcessor(); 04134 }
|
|
Definition at line 143 of file processor.cpp. |