power_bytepower_bytePowerBytePowerBytepower_byte (Operator)

Name

power_bytepower_bytePowerBytePowerBytepower_byte — Return the power spectrum of a complex image.

Signature

power_byte(Image : PowerByte : : )

Herror power_byte(const Hobject Image, Hobject* PowerByte)

Herror T_power_byte(const Hobject Image, Hobject* PowerByte)

void PowerByte(const HObject& Image, HObject* PowerByte)

HImage HImage::PowerByte() const

static void HOperatorSet.PowerByte(HObject image, out HObject powerByte)

HImage HImage.PowerByte()

def power_byte(image: HObject) -> HObject

Description

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

Please note, that resulting gray values that exceed the value of 255 are clipped at 255 because of the resulting image type 'byte'"byte""byte""byte""byte".

Execution Information

Parameters

ImageImageImageimageimage (input_object)  (multichannel-)image(-array) objectHImageHObjectHObjectHobject (complex)

Input image in frequency domain.

PowerBytePowerBytePowerBytepowerBytepower_byte (output_object)  image(-array) objectHImageHObjectHObjectHobject * (byte)

Power spectrum of the input image.

Example (C)

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

Result

power_bytepower_bytePowerBytePowerBytepower_byte returns 2 ( H_MSG_TRUE) if the image is of correct type. If the input is empty the behavior can be set via set_system(::'no_object_result',<Result>:)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>)set_system("no_object_result",<Result>). If necessary, an exception is raised.

Possible Predecessors

fft_imagefft_imageFftImageFftImagefft_image, fft_genericfft_genericFftGenericFftGenericfft_generic, rft_genericrft_genericRftGenericRftGenericrft_generic, convol_fftconvol_fftConvolFftConvolFftconvol_fft, convol_gaborconvol_gaborConvolGaborConvolGaborconvol_gabor

Possible Successors

disp_imagedisp_imageDispImageDispImagedisp_image

Alternatives

abs_imageabs_imageAbsImageAbsImageabs_image, convert_image_typeconvert_image_typeConvertImageTypeConvertImageTypeconvert_image_type, power_realpower_realPowerRealPowerRealpower_real, power_lnpower_lnPowerLnPowerLnpower_ln

See also

fft_imagefft_imageFftImageFftImagefft_image, fft_genericfft_genericFftGenericFftGenericfft_generic, rft_genericrft_genericRftGenericRftGenericrft_generic

Module

Foundation