Basically, I get the image, resize it, apply a DoG convolution morphology to the image, negate it and then ContrastStretch it. Everything here works except the DoG convolution, shown below:
Code: Select all
KernelInfo* kernel = AcquireKernelInfo("DoG:20,100,0");
my_image = MorphologyImage(my_image, ConvolveMorphology, 1, kernel, exception);
I'm using the compiled libraries for iOS produced by Claudio Marforio at https://github.com/marforic/imagemagick_lib_iphone. Unless this is somehow a known issue, I'm not really expecting it to be solved based on the info I'm providing here, but I am looking to help generate a strategy for troubleshooting and tracking this down. About the only idea I've got is to try compiling the libraries myself, which I'm happy to do if appropriate, but am guessing this may take a little time and won't be likely to get a good result.
So I suppose my questions are: 1) to knowledgable people, does this result suggest something I should look at or something that may be going on. 2) for those who have been there before with ImageMagick, especially with mobile development experience, how would you begin trouble shooting this; what should I be looking for?
And of course, I'm happy to provide more info as needed. I'm just nervous about a very deep rabbit hole for code I admittedly don't understand as well as I'd like; any guidance or suggestions for how to start tackling this would be appreciated.