#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 4009 of file processor.h.
|
|
Implements EMAN::NormalizeProcessor. Definition at line 4034 of file processor.h. 04034 { return 0; }
|
|
|
Reimplemented from EMAN::NormalizeProcessor. Definition at line 3462 of file processor.cpp. References EMAN::EMData::get_attr(), LOGWARN, and sqrt(). 03463 {
03464 if (!image) {
03465 LOGWARN("NULL Image");
03466 return 0;
03467 }
03468 float ret=sqrt((float)image->get_attr("square_sum"));
03469 return ret==0.0f?1.0f:ret;
03470 }
|
|
|
Get the descrition of this specific processor. This function must be overwritten by a subclass.
Implements EMAN::Processor. Definition at line 4022 of file processor.h. 04023 {
04024 return "Normalize an image so its vector length is 1.0.";
04025 }
|
|
|
Get the processor's name. Each processor is identified by a unique name.
Implements EMAN::Processor. Definition at line 4012 of file processor.h. 04013 {
04014 return NAME;
04015 }
|
|
|
Definition at line 4017 of file processor.h. 04018 {
04019 return new NormalizeUnitProcessor();
04020 }
|
|
|
Definition at line 142 of file processor.cpp. |
1.3.9.1