MagickFilterImage and non-square filters?
Posted: 2015-02-11T09:06:20-07:00
Is it required to call MagickFilterImage only with square, odd-sized filters (e.g. 3x3) or would non-square values be allowed? e.g. 3x4
The function seems to give an error if even sized filters are used (e.g. 4x4) but doesn't give an error for 3x4 size. However the image generated is highly corrupted, with valgrind reporting a large number of errors.
Asking in this forum, as if it's not allowed, then I think it should be checked for, just like the check against even sizes, to prevent image corruption.
==5112== Conditional jump or move depends on uninitialised value(s)
==5112== at 0x12D3843B: FilterImageChannel (quantum.h:94)
==5112== by 0x129C419B: MagickFilterImageChannel (magick-image.c:3400)
==5112== by 0x126DBB45: zim_imagick_filter (imagick_class.c:11556)
The function seems to give an error if even sized filters are used (e.g. 4x4) but doesn't give an error for 3x4 size. However the image generated is highly corrupted, with valgrind reporting a large number of errors.
Asking in this forum, as if it's not allowed, then I think it should be checked for, just like the check against even sizes, to prevent image corruption.
==5112== Conditional jump or move depends on uninitialised value(s)
==5112== at 0x12D3843B: FilterImageChannel (quantum.h:94)
==5112== by 0x129C419B: MagickFilterImageChannel (magick-image.c:3400)
==5112== by 0x126DBB45: zim_imagick_filter (imagick_class.c:11556)