Re: SpeedUp 1bit Processing
[email protected] Fri, 4 Jul 2008 18:39:54 -0700
| Newsgroups | gmane.comp.video.image-magick.devel |
|---|---|
| Message-ID | <[email protected]> |
> Who has some ideas, may be OpenMP, special routines . . . Recent versions of ImageMagick have numerous algorithms converted to OpenMP. The oil paint method, for example went from 21 seconds to 6 on a quad-core processor. The image format readers and writers are sequential so there little opportunity for a speed up there. ImageMagick has the advantage of dealing with up to terabyte images but the disadvantage of not always doing so efficiently. For example, 1-bit images are stored internally as 8 or 16-bit red, green, and blue tuples. Other than ensuring you are using the latest ImageMagick release, try using the Q8 (8-bits) version rather than the default Q16 (16-bits). You will definitely get a speed-up with additional memory. Images that exceed the memory capacity of the computer are cached to disk which is deadly slow. Finally, consider using some other program that efficiently handles 1-bit images. ImageMagick was designed to be a general image processor so we made trade-offs in the design that does not always translate to speed.