EMAN2
|
Functions | |
void | EMAN::EMData::common_lines (EMData *image1, EMData *image2, int mode=0, int steps=180, bool horizontal=false) |
Finds common lines between 2 complex images. More... | |
void | EMAN::EMData::common_lines_real (EMData *image1, EMData *image2, int steps=180, bool horizontal=false) |
Finds common lines between 2 real images. More... | |
void EMData::common_lines | ( | EMData * | image1, |
EMData * | image2, | ||
int | mode = 0 , |
||
int | steps = 180 , |
||
bool | horizontal = false |
||
) |
Finds common lines between 2 complex images.
This function does not assume any symmetry, just blindly compute the "sinogram" and the user has to take care how to interpret the returned "sinogram". it only considers inplane rotation and assumes prefect centering and identical scale.
image1 | The first complex image. |
image2 | The second complex image. |
mode | Either 0 or 1 or 2. mode 0 is a summed dot-product, larger value means better match; mode 1 is weighted phase residual, lower value means better match. |
steps | 1/2 of the resolution of the map. |
horizontal | In horizontal way or not. |
NullPointerException | If 'image1' or 'image2' is NULL. |
OutofRangeException | If 'mode' is invalid. |
ImageFormatException | If 'image1' 'image2' are not same size. |
Definition at line 3632 of file emdata.cpp.
References EMAN::Util::angle_sub_2pi(), EMAN::Util::bilinear_interpolate(), ENTERFUNC, EXITFUNC, get_data(), get_value_at(), ImageFormatException, EMAN::EMUtil::is_same_size(), LOGERR, NullPointerException, EMAN::EMData::nx, EMAN::EMData::ny, OutofRangeException, set_size(), set_value_at(), sqrt(), EMAN::Util::square_sum(), update(), x, and y.
void EMData::common_lines_real | ( | EMData * | image1, |
EMData * | image2, | ||
int | steps = 180 , |
||
bool | horizontal = false |
||
) |
Finds common lines between 2 real images.
image1 | The first image. |
image2 | The second image. |
steps | 1/2 of the resolution of the map. |
horizontal | In horizontal way or not. |
NullPointerException | If 'image1' or 'image2' is NULL. |
ImageFormatException | If 'image1' 'image2' are not same size. |
Definition at line 3898 of file emdata.cpp.
References ENTERFUNC, EXITFUNC, get_data(), ImageFormatException, images, EMAN::EMUtil::is_same_size(), NullPointerException, set_size(), sqrt(), and update().