1IM_FOURFLT(3) Library Functions Manual IM_FOURFLT(3)
2
3
4
6 im_freqflt - filters an image with a float filter mask in the frequency
7 domain
8
10 #include <vips/vips.h>
11
12 int im_freqflt(in, filtermask, out)
13 IMAGE *in, *filtermask, *out;
14
16 im_freqflt() performs filtering in the frequency domain of the input
17 image held by the image descriptor in with a mask held by the descripâ
18 tor filtermask and writes the result on the image descriptor out.
19
20 Image sizes should be power of two and less or equal to 512. All
21 images should be one channel square images. Image filtermask is a non-
22 complex one channel image created by im_create_fmask(). Input image
23 can be any type. If input is complex, in and filtermask are multiplied
24 using the function im_cmultim(3).
25
26 If input is not complex then it is transformed into the frequency
27 domain and then it is multiplied with the filtermask. In the latter
28 case the result is inverse fourier transformed and clipped to the input
29 image format using the function im_clip2fmt(3).
30
32 The function returns 0 on success and -1 on error.
33
35 The function has not been fully tested.
36
38 im_fwfft(3), im_invfft(3), im_create_fmask(3), im_cmultim(3).
39
41 N. Dessipris
42
44 N. Dessipris - 10/05/1991
45
46
47
48 10 May 1991 IM_FOURFLT(3)