#include <cmp.h>
|
static const string | NAME = "vertical" |
|
Definition at line 723 of file cmp.h.
◆ cmp()
float VerticalCmp::cmp |
( |
EMData * |
image, |
|
|
EMData * |
with |
|
) |
| const |
|
virtual |
To compare 'image' with another image passed in through its parameters.
An optional transformation may be used to transform the 2 images.
- Parameters
-
image | The first image to be compared. |
with | The second image to be comppared. |
- Returns
- The comparison result. Smaller better by default
Implements EMAN::Cmp.
Definition at line 1642 of file cmp.cpp.
1645 int nx=image->get_xsize();
1646 int ny=image->get_ysize();
1649 for (
int x=0;
x<nx;
x++){
1651 for (
int y=0;
y<ny;
y++){
1652 s+=image->get_value_at(
x,
y);
References ENTERFUNC, x, and y.
◆ get_desc()
string EMAN::VerticalCmp::get_desc |
( |
| ) |
const |
|
inlinevirtual |
Implements EMAN::Cmp.
Definition at line 733 of file cmp.h.
735 return "Align the 2d image vertically. Reference image is ignored";
◆ get_name()
string EMAN::VerticalCmp::get_name |
( |
| ) |
const |
|
inlinevirtual |
Get the Cmp's name.
Each Cmp is identified by a unique name.
- Returns
- The Cmp's name.
Implements EMAN::Cmp.
Definition at line 728 of file cmp.h.
References NAME.
◆ get_param_types()
TypeDict EMAN::VerticalCmp::get_param_types |
( |
| ) |
const |
|
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.
- Returns
- A dictionary containing the parameter info.
Implements EMAN::Cmp.
Definition at line 743 of file cmp.h.
◆ NEW()
static Cmp * EMAN::VerticalCmp::NEW |
( |
| ) |
|
|
inlinestatic |
Definition at line 738 of file cmp.h.
740 return new VerticalCmp();
◆ NAME
const string VerticalCmp::NAME = "vertical" |
|
static |
The documentation for this class was generated from the following files: