Herror ::power_byte (
    Hobject Image,
    Hobject *PowerByte
)
HImage HImage::PowerByte (
    void
) const
HImageArray HImageArray::PowerByte (
    void
) const

Return the power spectrum of a complex image.

::power_byte computes the power spectrum from the real and imaginary parts of a Fourier-transformed image (see ::fft_image), i.e., the modulus of the frequencies. The result image is of type 'byte'. The following formula is used:

  sqrt(real part**2 + imaginary part**2) .


Parameters

Image (input_object)
image(-array) -> Hobject: HImage(Array) ( complex )
Input image in frequency domain.

PowerByte (output_object)
image(-array) -> Hobject * : HImage(Array) ( byte )
Power spectrum of the input image.


Example
read_image(&Image,"affe");
disp_image(Image,WindowHandle);
fft_image(Image,&FFT);
power_byte(FFT,&Power);
disp_image(Power,WindowHandle);

Result

::power_byte returns H_MSG_TRUE if the image is of correct type. If the input is empty the behaviour can be set via ::set_system('no_object_result',<Result>). If necessary, an exception handling is raised.


Possible Predecessors

::fft_image, ::fft_generic, ::convol_fft, ::convol_gabor


Possible Successors

::disp_image


Alternatives

::abs_image, ::convert_image_type, ::power_real, ::power_ln


See also

::fft_image


Module

Image filters



Copyright © 1996-2002 MVTec Software GmbH