Bsoft function

img_align

Source:

src/img/img_align.c

Description:

Aligns the second image to the first.

Algorithm:

	The second image is transformed to fit on the first image.

Arguments:

Bimage* p1first image.
Bimage* p2second image (transformed)
Vector3 tile_size3-valued vector for the size of sub-images.
float res_lolow resolution limit for cross-correlation.
float res_hihigh resolution limit for cross-correlation.
int filter_flagflag to filter micrograph extremes.
int refine_flagflag to turn on refinement of shift.

Returns:

Transform structure with shift, scale, rotation angle, and R factor.

Prototype:

Transform img_align(Bimage* p1, Bimage* p2, Vector3 tile_size, float res_lo, float res_hi, int filter_flag, int refine_flag)

Functions used:

add_item
balloc
bfree
coordset_find_rottrans
img_extract_tiles
img_extract_tiles_at_coords
img_filter_mg_extremes
img_find_shift
img_transform
kill_img
kill_list
transform_init

Other objects included:

struct Bimage
struct Bmarker
constant M_PI
class Matrix3
struct Transform
constant VERB_
class Vector3


Generated by bdoc.pl on Mon Jun 15 11:47:15 2009


Back to the Bsoft home