Hello, everybody, my name is Sergio RodrÃguez Arbeo and I'm a GSoC (Google Summer of Code) student working on RMagick4J (the port of RMagick to JRuby). Because of this, I have to read code of both RMagick and ImageMagick. In the line 464 of the gem.c file, there is the following expression:
(( ((max-b)/6.0)+ (delta/2.0))- (((max-g)/6.0)+(delta/2.0)))/delta; I think it is equals to the expression: (g-b)*delta/6.0 What do you think? Regards, Serabe (Sergio RodrÃguez Arbeo) P.S. This is the way I figure out the new expression: (( ((max-b)/6.0)+ (delta/2.0))- (((max-g)/6.0)+(delta/2.0)))/delta; (( (max-b)/6.0)+ (delta/2.0)- ((max-g)/6.0)-(delta/2.0))/delta; (( (max-b)/6.0) - ((max-g)/6.0))/delta; ( ( (max-b) - (max-g) )/6.0 )/delta ( ( max - b - max + g )/6.0 )/delta ( (- b + g )/6.0 )/delta ( (g - b)/6.0 )/delta (g - b) * delta /6.0 -- http://www.serabe.com _______________________________________________ Magick-developers mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-developers
