#include <processor.h>
Inheritance diagram for EMAN::MinShrinkProcessor:
Public Member Functions | |
virtual EMData * | process (const EMData *const image) |
The min shrink processor has its own process function to minise memory usage - if this function was not over written the base Processor class would create copy of the input image and hand it to the process_inplace function. | |
virtual void | process_inplace (EMData *image) |
To process an image in-place. | |
string | get_desc () const |
Get the descrition of this specific processor. | |
string | get_name () const |
Get the processor's name. | |
TypeDict | get_param_types () const |
Get processor parameter information in a dictionary. | |
Static Public Member Functions | |
Processor * | NEW () |
Static Public Attributes | |
const string | NAME = "math.minshrink" |
n | The shrink factor | |
search | The search area (cubic volume width, usually the same as shrink) |
Definition at line 3170 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 3189 of file processor.h. 03190 { 03191 return "Shrink an image by a given amount (default 2), using the minimum value found in the pixel neighborhood."; 03192 }
|
|
Get the processor's name. Each processor is identified by a unique name.
Implements EMAN::Processor. Definition at line 3194 of file processor.h. 03195 {
03196 return NAME;
03197 }
|
|
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 3203 of file processor.h. References EMAN::TypeDict::put(). 03204 { 03205 TypeDict d; 03206 d.put("n", EMObject::INT, "The shrink factor"); 03207 d.put("search", EMObject::INT, "The search area (cubic volume width, usually the same as shrink)"); 03208 return d; 03209 }
|
|
Definition at line 3198 of file processor.h. 03199 { 03200 return new MinShrinkProcessor(); 03201 }
|
|
The min shrink processor has its own process function to minise memory usage - if this function was not over written the base Processor class would create copy of the input image and hand it to the process_inplace function. This latter approach mallocs and copies more memory than necessary Reimplemented from EMAN::Processor. Definition at line 3179 of file processor.h. 03180 {
03181 return BooleanShrinkProcessor::process<LessThan>(image, params);
03182 }
|
|
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 3185 of file processor.h. 03186 { 03187 BooleanShrinkProcessor::process_inplace<LessThan>(image, params); 03188 }
|
|
Definition at line 119 of file processor.cpp. |