EMAN2
|
Compute the cross-correlation coefficient between two images. More...
#include <cmp.h>
Public Member Functions | |
float | cmp (EMData *image, EMData *with) const |
To compare 'image' with another image passed in through its parameters. More... | |
string | get_name () const |
Get the Cmp's name. More... | |
string | get_desc () const |
TypeDict | get_param_types () const |
Get Cmp parameter information in a dictionary. More... | |
Public Member Functions inherited from EMAN::Cmp | |
virtual | ~Cmp () |
virtual Dict | get_params () const |
Get the Cmp parameters in a key/value dictionary. More... | |
virtual void | set_params (const Dict &new_params) |
Set the Cmp parameters using a key/value dictionary. More... | |
Static Public Member Functions | |
static Cmp * | NEW () |
Static Public Attributes | |
static const string | NAME = "ccc" |
Additional Inherited Members | |
Protected Member Functions inherited from EMAN::Cmp | |
void | validate_input_args (const EMData *image, const EMData *with) const |
Protected Attributes inherited from EMAN::Cmp | |
Dict | params |
Compute the cross-correlation coefficient between two images.
The cross-correlation coefficient is defined as: <AB> - CCC = ----------— sig(A)sig(B)
where the angle brackets denote averages and "sig" is the standard deviation. In the case of a mask, only pixels under the mask are included in the calculation of averages.
For complex images, this routine currently bails.
negative | Returns -1 * ccc, default true |
To compare 'image' with another image passed in through its parameters.
An optional transformation may be used to transform the 2 images.
image | The first image to be compared. |
with | The second image to be comppared. |
Implements EMAN::Cmp.
Definition at line 113 of file cmp.cpp.
References ccc_cmp_cuda(), dm, ENTERFUNC, EXITFUNC, EMAN::Util::goodf(), EMAN::Dict::has_key(), ImageFormatException, EMAN::Cmp::params, EMAN::Dict::set_default(), sqrt(), and EMAN::Cmp::validate_input_args().
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Get Cmp parameter information in a dictionary.
Each parameter has one record in the dictionary. Each record contains its name, data-type, and description.
Implements EMAN::Cmp.
Definition at line 173 of file cmp.h.
References EMAN::EMObject::EMDATA, EMAN::EMObject::INT, and EMAN::TypeDict::put().
|
inlinestatic |
|
static |
Definition at line 181 of file cmp.h.
Referenced by get_name().