energy_gabor — 计算双通道图像的能量。
energy_gabor(ImageGabor, ImageHilbert : Energy : : )
energy_gabor calculates the local contrast
(Energy) of the two input images. The energy of the
resulting image is then defined as
Often the calculation of the energy is preceded by the convolution
of an image with a Gabor filter and the Hilbert transform of the
Gabor filter (see convol_gabor). In this case, the
first channel of the image passed to energy_gabor is the
Gabor-filtered image, transformed back into the spatial domain (see
fft_image_inv), and the second channel the result of the
convolution with the Hilbert transform, also transformed back into
the spatial domain. The local energy is a measure for the local
contrast of structures (e.g., edges and lines) in the image.
ImageGabor (输入对象) (multichannel-)image(-array) → object (byte / real)
1st channel of input image (usually: Gabor image).
ImageHilbert (输入对象) (multichannel-)image(-array) → object (byte / real)
2nd channel of input image (usually: Hilbert image).
Energy (输出对象) image(-array) → object (real)
Image containing the local energy.
fft_image(Image,&FFT); gen_gabor(&Filter,1.4,0.4,1.0,1.5,512); convol_gabor(FFT,Filter,&Gabor,&Hilbert); fft_image_inv(Gabor,&GaborInv); fft_image_inv(Hilbert,&HilbertInv); energy_gabor(GaborInv,HilbertInv,&Energy);
energy_gabor 在所有参数正确时返回 2 ( H_MSG_TRUE )。当输入为空时,可设置行为通过算子 set_system(::'no_object_result',<Result>:)。如有必要,则抛出异常。
gen_gabor,
convol_gabor,
fft_image_inv
基础