I just found a Matlab tutorial at savvash.blogspot.com for content aware image scaling, aka seam carving. It is basically the same algorithms they use in PhotoShop CS4 for their ‘Content Aware Scaling’.
If you’ve never heard of seam carving make sure to watch the video
And here is an outlook into the future, a video demo what CS5 is able to do. Sweet magic.
for more on Matlab look at my post: Programming in Matlab!