Re: XForms: flimage_convolve function

T.C. Zhao (tc_zhao@yahoo.com)
Sat, 9 Oct 1999 07:20:07 -0700 (PDT)

# To subscribers of the xforms list from "T.C. Zhao" <tc_zhao@yahoo.com> :

just make sure your kernel is allocated using fl_get_matrix():

int **kernel = fl_get_matrix(3,3,sizeof(**kernel));
kernel[0][0] = whatever,
kernel[0][1] = ...

the document did not make the fact the kernel has to be
a pointer to pointer to int. I'll add a function
that takes the C 2-d array kernel[3][3].

The built-in smoothing kernel is something like the following:

1 2 1
2 7 2
1 2 1
--- Ravi Mehrotra <ravi@csnpl.ren.nic.in> wrote:
> # To subscribers of the xforms list from Ravi Mehrotra
> <ravi@csnpl.ren.nic.in> :
>
> Hi,
>
> I would like to know how flimage_convolve is set up. In particular
> how the kernel operates on the image and what the normalization
> factors usedi are.
>
> To test, I used a 3X3 kernel with the center element unity and all
> others zero. I thought that I would get the original image back but I
> got all zeros in the convolved image.
>
> What are the kernels used for FLIMAGE_SHARPEN AND FLIMAGE_SMOOTH ?
> By the way these symbolic constants are wrongly defined as FL_SMOOTH
> and FL_SHARPEN in the forms.h header file.
>
> Thanks.
>
> Ravi Mehrotra
> National Physical Laboratory
> New Delhi, India
> _________________________________________________
> To unsubscribe, send the message "unsubscribe" to
> xforms-request@bob.usuhs.mil or see
> http://bob.usuhs.mil/mailserv/xforms.html
> XForms Home Page: http://bragg.phys.uwm.edu/xforms
> List Archive: http://bob.usuhs.mil/mailserv/list-archives/
>
>

=====

__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuhs.mil or see
http://bob.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuhs.mil/mailserv/list-archives/