How To Spot A Psychopath

October 17, 2007

Yet more seam carving

Filed under: Hacks, Windows, Software

When last we visited the wonderful world of image “retargeting” by means of the cunning seam carving technique, I envisaged a decent free seam carving Photoshop plugin in the near-ish future.

Well, that hasn’t turned up yet. But a couple of options besides rsizr.com and that GIMP plugin have.

The inventively named Content Aware Image Resizer is a simple command line utility that can only cope with BMP format images, but gets the job done (a bit slowly…), is multithreaded, and is GPL-licensed so C++ hackers can fiddle with the source.

Resizor is a standalone Windows app, which is only single-threaded but still seems a bit faster than CAIR (I think rsizr.com is faster now than it used to be, too), has a bunch of fancy resizing algorithms as well as the seam carving “Retarget” option, and has a graphical interface too.

Resizor only lets you make an image smaller by seam carving (one of the interesting features of the technique is that it can just as easily enlarge images as shrink them), but it does what most people want to do.

4 Comments »

The URI to TrackBack this entry is: http://dansdata.blogsome.com/2007/10/17/yet-more-seam-carving/trackback/

  1. I must not be “most people”.
    I have a whole bunch of 1600x1200 wallpapers, and I have been using seam carving (and other methods) to “teak” them out to widescreen 1920x1200. I’ve had some success, and some hideous failures. Failures typically happen when there’s a human form over ~80% of the picture width- the ends of the picture get a “pinched” look (with masking) or the human form gets distorted (without masking).

    So far, Liquid Resize works best for me.

    Comment by Alan — October 19, 2007 @ 11:02 am

  2. Whoa! I just realized that this concept is a practical implementation of the decade-old FlikFX joke!

    Comment by rcousine — October 19, 2007 @ 2:08 pm

  3. Making the retargeting consistent from frame to frame would require extra work, and it’d be impossible to do it without weird stuff happening when things in the frame moved relative to each other, or the camera itself moved. But yes, you actually could squish motion video this way. It’d be fascinating to see how it looked.

    Note that Pixar have done something like this for the 4:3 versions of at least some of their movies.

    They don’t seam carve the widescreen version into full frame - instead, they “reshoot the scenes”, moving everything around so it fits better on a screen with a different aspect ratio, then rendering again.

    Comment by Daniel Rutter — October 20, 2007 @ 2:21 am

  4. Manually assigning the weights to different parts of portraits can make for a rather entertaining caricature
    generator.

    Comment by sockatume — October 23, 2007 @ 2:38 am

RSS feed for comments on this post.

Leave a comment

Please register and login before leaving a comment.

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>



Retype the above text into the box provided.

Get your free blog up and running in minutes with Blogsome