Hi all,
I am trying to speed up a simple heatmap image generation:
t1 = clock();
heatmap = MagickFxImage(heatmap, "v.p{0,u*v.h}");
t2 = clock();
if (DEBUG) fprintf(stderr, "Time to fx image: %.1f\n",
((double) (t2-t1)) / CLOCKS_PER_SEC);
This call is taking 68 seconds for a 700x550 image.
t1 = clock();
sprintf(alphaFX, "A*%.2f", opacity);
heatmap = MagickFxImageChannel(heatmap, AlphaChannel, alphaFX);
t2 = clock();
if (DEBUG) fprintf(stderr, "Time to fx Alpha image: %.1f\n",
((double) (t2-t1)) / CLOCKS_PER_SEC);
and this call is taking 8.2 sec.
is there a better (faster) way to do this? This represents about 99% of
the time to process the image :(
Another annoying problem I ran into is the fact that the first Fx call
would not even work until I saved the heatmap image to a file and
reloaded the file. is there a better way to materialize the image so the
Fx command will work on it?
Thanks for your help.
-Steve
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users