Re: 7x7 and 9x9 Gaussian Convolution Kernel
- From: "Severian [MVP]" <severian@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 05 Aug 2005 01:35:09 GMT
On Fri, 5 Aug 2005 01:45:09 +0200, "Max" <adsl@xxxxxxxxxx> wrote:
>Hello!
>
>Could anyone write me a 7x7, 9x9 Gaussian convolution kernel with the
>coefficients are not zero and the sum of coefficients is equal to 256?
>How to calculate?
Assuming you want integer coefficients, I don't think your request is
possible: you're either going to have to accept some zeros -- since
Gaussian is not square -- or use floating point coeffs.
It's best to decompose gaussian two 1D convolutions, 7x1/1x7 or
9x1/1x9, in which case your desire can be met, and will be much faster
than a 2D linear filter.
Google this group for sample C code. I posted some a year or two ago.
--
Phillip Crews aka Severian
Microsoft MVP, Windows SDK
Posting email address is real, but please post replies on the newsgroup.
.
- Follow-Ups:
- References:
- 7x7 and 9x9 Gaussian Convolution Kernel
- From: Max
- 7x7 and 9x9 Gaussian Convolution Kernel
- Prev by Date: Re: 7x7 and 9x9 Gaussian Convolution Kernel
- Next by Date: Re: 7x7 and 9x9 Gaussian Convolution Kernel
- Previous by thread: Re: 7x7 and 9x9 Gaussian Convolution Kernel
- Next by thread: Re: 7x7 and 9x9 Gaussian Convolution Kernel
- Index(es):
Relevant Pages
|