Hi @all,
I'm currently working on a project where I have to use Magick++ (6.5.1).
At the moment I'm trying to find a way to convolve an image with an non-square kernel. The convolve-method of Magick::Image however seems to work only with square-kernels, as it only takes one integer for the kernels dimensions. I found an old thread from 2008 (viewtopic.php?f=3&t=11122) where non-square kernels where added to the wishlist.
What happened to that wish? Is there now a way to too this, other than padding the kernel with zeros?
And btw: How does the convolve-method deal with the border-problem?
Convolution with non-square kernels
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Convolution with non-square kernels
It was done in -morphology convolve/correlate in IM 6
see
http://www.imagemagick.org/Usage/convolve/
I do not know if it was folded back into -convolve in IM 6, but I believe it will be in IM 7.
see
http://www.imagemagick.org/Usage/convolve/
I do not know if it was folded back into -convolve in IM 6, but I believe it will be in IM 7.