[magick-users] Mathematical Cloud Composition

Ashton Peters ashtonaut at hotmail.com
Tue Jul 10 13:39:34 PDT 2007


Interstingly enough, I found the following on my machine (Vista, Core 2 
Duo):

(r+g+b)^2/3^2    = 28 seconds

(r+g+b)*(r+g+b)/9.0    = 40 seconds

(r+g+b)^2/9.0    = 22 seconds

Ashton


>From: "Ross Presser" <rpresser at gmail.com>
>To: "Ashton Peters" <ashtonaut at hotmail.com>
>Subject: Re: [magick-users] Mathematical Cloud Composition
>Date: Tue, 10 Jul 2007 09:21:37 -0400
>
>Maybe trivial, but why wouldn't you use 9.0 instead of 3^2.0?  -fx is
>slow enough as it is; give it all the help you can.  Likewise,
>(r+g+b)*(r+g+b) might be a skosh faster than (r+g+b)^2.0.
>
>On 7/9/07, Ashton Peters <ashtonaut at hotmail.com> wrote:
>>My previous message to this list was rejected, so I will try again :)
>>
>>I went with David's suggestion, with a couple of minor modifications for
>>command-line syntax on Windows:
>>
>>convert nz_day.jpg nz_clouds.jpg ( +clone -channel a -fx
>>"(r+g+b)^2.0/(3^2.0)" ) \
>>      -delete 1 -composite nz_composite.jpg
>>
>>This worked perfectly!
>>
>>Regards,
>>
>>Ashton
>>
>>_________________________________________________________________
>>Live Search delivers results the way you like it. Try live.com now!
>>http://www.live.com
>>
>>_______________________________________________
>>Magick-users mailing list
>>Magick-users at imagemagick.org
>>http://studio.imagemagick.org/mailman/listinfo/magick-users
>>

_________________________________________________________________
Live Search delivers results the way you like it. Try live.com now! 
http://www.live.com



More information about the Magick-users mailing list