Re: tilt-shift... but faster?

Anthony Thyssen <[email protected]> Tue, 17 May 2011 14:39:36 +1000
Newsgroups gmane.comp.video.image-magick.user
Message-ID <20110517143936.4c142d25@wraith>
On Mon, 16 May 2011 23:33:29 -0400
[email protected] wrote:
| Hi all-
| So first I wanted to announce a Ruby gem I created called magickly, which
| essentially offers Imagemagick as a web service.  Please take a look - would
| love any feedback:
| 
| https://github.com/afeld/magickly
| 

I suggest you make the announcement in the IM Forum Announce area

A link to some basic documentation (not the project page) would be helpful!

| convert source.png \\( +clone -sparse-color Barycentric '0,0 black
| 0,%[fx:h-1] white' -function polynomial 2,-2,0.5 \\) \
| 
| -compose Blur -set option:compose:args 15 -composite output.png
|
Hmmm that sparse-color line is a little wrong but not to any visible
degree in the results.  Updating usage example

For general speedups see...
  http://www.imagemagick.org/Usage/api/#speed

However the blur is very slow.. and for a short period, a patch to fix
blurs of less that 1 sigma caused it to be 3 to 5 times slower still.

That patch was removed until I can re-think the problem.  
If you IM is between versions  6.6.7-7 and 6.6.8-4  and Upgrade your IM.

Perhaps a run-time switch to remove the use of a LUT for EWA filtering,
which was the cause of the the slow down in that patch.

Sorry thinking out loud!

  Anthony Thyssen ( System Programmer )    <[email protected]>
 --------------------------------------------------------------------------
    Philosophy (n):  unintelligible answers to insoluble problems.
 --------------------------------------------------------------------------
   Anthony's Castle     http://www.ict.griffith.edu.au/anthony/