[magick-users] Image channel value is 65535.5

Elie Zedeck RANDRIAMIANDRIRAY rez at eliezedeck.com
Wed Oct 29 00:47:46 PDT 2008


Hello guys,

I'm back again from a long time of other activities.

I'm using Magick++, and it is behaving strangely.

When using a PixelPacket, there are some images that have channel which 
supposedly greater than the QuantumRange (65535).

I'm building an Image operator, which scans each pixel channel values, 
and when comparing, a same image (fully white) after modification has 
channel value 65535.5, and the original is 65535.

As a temporary solution, I'm transforming the value through floor() 
first, then do the comparison.

Is this Normal? And how can I solve this permanently?

It might be worth noting that I run the .shade() method on the Image 
that have 65535.5 channel value prior to comparison.

Elie Zedeck.


More information about the Magick-users mailing list