Bsoft function

img_weigh_amplitudes

Source:

src/img/img_ampweigh.c

Description:

Weighs an image's amplitudes with the radial power spectrum of another.

Algorithm:

	The two images must be of the same dimensions.

The two images are packed into a combined complex data set (the first
image in the real part and the second image in the imaginary part).
This is Fourier transformed and the individual transforms calculated
based on the Hermitian or Friedel symmetry of transforms of real space
data sets. The radial power spectra of the two images are calculated
and used to calculate the ratio of the second to the first in each shell.
This ratio is then used to rescale the amplitudes of the first image.

Arguments:

Bimage* pimage to be modified.
Bimage* prefreference image.
Bimage* pmaskreciprocal space mask (0 & 1, indicating inclusion of structure factors).

Returns:

int 0.

Prototype:

int img_weigh_amplitudes(Bimage* p, Bimage* pref, Bimage* pmask)

Functions used:

balloc
bfree
img_fft
img_pack_two_in_complex
img_to_byte

Other objects included:

struct Bimage
struct Bmarker


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


Back to the Bsoft home