[magick-users] MagickGetImageDepth performance issues
Gonzalo Garramuño
ggarra at advancedsl.com.ar
Tue Jan 29 09:51:41 PST 2008
I'm using the wand interface in my software for reading images.
As my software can handle and display anything from 8-bit images to full
HDR images, I need to obtain the (best/original) bit depth of the image
that image magick read.
Currently, I am using:
unsigned long depth = MagickGetImageDepth( wand );
The problem with this call is that it seems to be EXTREMELY slow
(specially noticeable on large images like 4K images). It seems to
iterate through all the pixels.
I'm looking for a function call or struct member that just tells me the
bit-depth of the (original) image as read.
That is, probably just:
wand->image_info->depth
or
wand->image->depth
but, incredibly, this seems to not be part of the exposed api.
--
Gonzalo Garramuño
ggarra at advancedsl.com.ar
AMD4400 - ASUS48N-E
GeForce7300GT
Xubuntu Gutsy
More information about the Magick-users
mailing list