Search found 3 matches

by swp
2013-09-08T13:14:43-07:00
Forum: MagickWand
Topic: How to get the image brightness?
Replies: 3
Views: 18013

Re: How to get the image brightness?

Thank you very much Pete! Your code contained some typos, but after fixing those, I got the wrong value (it returned the blue color of the pixel wand, not the brightness). But your code example did point me to the right section of the documentation where I found the function PixelGetHSL(), which is ...
by swp
2013-09-06T15:13:01-07:00
Forum: MagickWand
Topic: Ubuntu 12.10 - linker errors (undefined reference)
Replies: 1
Views: 10737

Re: Ubuntu 12.10 - linker errors (undefined reference)

I'm on Ubuntu 13.04 and compiling wand.c works fine. But copy-pasting the code from that page somehow loses all the newlines, and you have to restore some of the newlines before it will compile (especially the #include and #define lines). If it still won't compile, show the entire error message.
by swp
2013-09-06T11:20:40-07:00
Forum: MagickWand
Topic: How to get the image brightness?
Replies: 3
Views: 18013

How to get the image brightness?

Hello, I'm trying to determine the brightness of an image using the MagickWand programming interface. I managed to get a brightness value on the command line with the following command: $ convert image.jpg -colorspace hsb -resize 1x1 txt:- # ImageMagick pixel enumeration: 1,1,255,hsb 0,0: ( 55, 33,1...