IM6 vs 7: Convolve with bias 50% differ

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
7eicher
Posts: 18
Joined: 2014-11-06T05:17:33-07:00
Authentication code: 6789

IM6 vs 7: Convolve with bias 50% differ

Post by 7eicher »

Hi folks,

I was using convert in IM6 to create the edges with the convolve method successfully like that:

Code: Select all

convert file.jpg -bias 50% -morphology Convolve loG:0x2 edge.jpg
Using now IM7 with the exact same command results in a totally white image:

Code: Select all

magick file.jpg -bias 50% -morphology Convolve loG:0x2 edge.jpg
Is this intentionally or a bug? I am using for IM7 this windows pre-build from http://blog.astrophotographytargets.com ... n-windows/ with FFTW support.

Source image:

Image

IM6 bias 50%:

Image

IM7 bias 50%:

Image

IM7 bias 0%:

Image
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: IM6 vs 7: Convolve with bias 50% differ

Post by snibgo »

That version is two years old. So it will have whatever bugs v6 had at that time, plus whatever bugs were introduced by the pre-release v7.

You might try this with a recent build of v7.

If I were you, I would use v7 only for operations that need it. In your case, this is just fft.
snibgo's IM pages: im.snibgo.com
7eicher
Posts: 18
Joined: 2014-11-06T05:17:33-07:00
Authentication code: 6789

Re: IM6 vs 7: Convolve with bias 50% differ

Post by 7eicher »

makes sense... thanks!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: IM6 vs 7: Convolve with bias 50% differ

Post by fmw42 »

I have tested your command and image on my Mac OSX Snow Leopard with IM 6.9.0.0 Q16 and IM 7 beta Q16 HDRI (Dec 20, 2014) and the two results agree visually. However, they are somewhat different (and likely more correct) than your IM 6 version. Your LoG 0x2 looks too sharp. You do not say what version of IM 6 you are using and it might be old or have a bug. Always best to identify your version of IM and platform.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: IM6 vs 7: Convolve with bias 50% differ

Post by fmw42 »

I am using for IM7 this windows pre-build from http://blog.astrophotographytargets.com ... n-windows/ with FFTW support.
Installation of FFTW on Windows and Ubuntu can be found at viewtopic.php?f=4&t=14251
Post Reply