Seam Carving for content aware Photo resizing

Ever faced the problem of copying and pasting a too big photo in your Blog and seen your Blog losing its sidebar? Ever seen a picture mis morphed in a widget? Do you know how to fit one and the same picture in both a computer-, a PDA- and a cellphone screen without getting distortions? Then you will appreciate the following solution:

Recently, in a PDF paper Seam Carving for Content-Aware Image Resizing, Shai Avidan of Mitsubishi Electric Research Labs and Ariel Shamir of The Interdisciplinary Center & MERL, explain an algorithm they propose to coin Seam Carving to overcome a common problem when you want to present a picture in various ways, or more common, if you want your photo or picture resize with your document in an non destructive or non obtrusive way.

The following three pictures will show what they mean:
First the original photo:

Seam Carving Original
Original photo with indication of horizontal and vertical seams

If for one or another reason this photo is stretched without Seam Carving applied, you get the following distorted result:

Seam Carving Original Stretched without carving
Original Photo Stretched without applying Seam Carving.

If this photo is stretched after applying Seam Carving, it is still distorted, but in an unobtrusive way:

Seam Carving Original stretched with Seam Carving
Original stretched after applying Seam Carving

The diversity and versatility of display devices today imposes new demands on digital media. For instance, designers must create different alternatives for web-content and design different layouts for different devices. Moreover, HTML, as well as other standards, can
support dynamic changes of page layout and text. Nevertheless, up to date, images, although being one of the key elements in digital media, typically remain rigid in size and cannot deform to fit different layouts automatically. Other cases in which the size, or aspect ratio of an image must change, are to fit into different displays such as cell phones or PDAs, or to print on a given paper size or resolution.
Standard image scaling is not sufficient since it is oblivious to the image content and typically can be applied only uniformly. Cropping is limited since it can only remove pixels from the image periphery.
More effective resizing can only be achieved by considering the image content and not only geometric constraints.
We propose a simple image operator, we term seam-carving, that can change the size of an image by gracefully carving-out or inserting pixels in different parts of the image. Seam carving uses an energy function defining the importance of pixels. A seam is a connected path of low energy pixels crossing the image from top to bottom, or from left to right. By successively removing or inserting seams we can reduce, as well as enlarge, the size of an image
in both directions (see Figure 1). For image reduction, seam selection ensures that while preserving the image structure, we remove more of the low energy pixels and fewer of the high energy ones.
For image enlarging, the order of seam insertion ensures a balance between the original image content and the artificially inserted pixels.
These operators produce, in effect, a content-aware resizing of
images.

They also explain this principle in a very instructive video:

A quantum jump forward I would say.

French Riviera and the Art of Booking Hotels Online: Nothing Zen! Part 3

Map of the French Riviera

We are taking a couple of days off after five months of 7/7 and 24/24 service to our dear guests. Destination: French Riviera. Just a couple of days on the board of a private swimming pool or a beach. Late breakfast, rest, lunch on the beach, rest, read a book, rest, small dinner, maybe some sightseeing, maybe some boating.
We put our plans for a trip to Copenhagen on the back burner as May, June and July gave us mediocre weather after an unusually hot April.

Where to stay?

First: where not to stay:

Not in Don Cesar, Cap d’ Antibes
We have stayed a couple of times at 4 star Hotel Don Cesar. Nicely located on Cap d’Antibes and near to one of our favorite beaches. However, the last time we stayed there, it proved more and more worn out. It doesn’t particularly look inviting to go back. This observation seems in line with those of Tripavisor reviews.
[Update: after a refurbishment the hotel is now know as Hotel Vogue]
Nor in Domaine Cocagne, Cagne sur Mer
Domaine Cocagne originated from a camping with some holiday apartments. It has Dutch owners and was not so long ago thoroughly and very nicely refurbished under guidance of a well known Dutch Designer, Jan des Bouvries: It has good location, a nice restaurant, nice beds and clean and almost white interior. However the guests that frequent there do not fit with the quietness and rest we are looking for. Especially since I had breakfast there with the pleasure of looking out over the swimming pool with a couple of ladies in a string only already loudly occupying their day beds (afraid as they were the beds would be gone for the day) while their figures would only be flattered by a bathing suit (even a bikini would have looked gross)….This view didn’t go well with the excellent shambled (pardon: scrambled) eggs I had for breakfast. In addition the owner made it very rudely clear to a couple of dear Gay friends of us who planned a stay for 2 or 3 months in the hotel, that he didn’t like gay people. Thirdly we noted a very high alcohol consumption of several hotel guests. These issues make me think twice to go there ever again. Hm they even have no reviews on Tripadvisor for this hotel.

True to my own principle I started browsing some trusted sites with hand picked accommodations.

  • Hotels of the Rich and Famous is easy navigable. Its map is excellent and combined with its listed properties it is quick and easy navigable. Certainly not so cluttered as some other sites. It comes up with: Chateau Eza in Eze (between Beaulieu and Monaco. Definitely a possibility as it is close to Bealieu where we like to visit friends one day and very close to Chateau de La Chèvre d’Or where a dinner or lunch has been on my wish list for quite some time already. It appears Chateau Eza is a Stein Group Hotel which operated the Dylan (formerly Blakes and now up for sale by owner Apollo Group) and The College Hotel, both in Amsterdam. I also didn’t know yet that Chateau de La Chèvre d’Or is a hotel as well. Alas it looks much more stuffy than Eza.
  • Kiwi Collection mentions:
    • Le Mas Candille in Mougins which actually is a bit too far from the beaches,
    • Chateau Eza in Eze (again),
    • Cap Estel Eze, Bord de Mer (down by the sea), even a Kiwi Collection WOW pick, but no availability,
    • Le Mas de Pier in Saint Paul de Vence
    • Villa Belrose, near St Tropez that is a bit far from where we want to stay
    • La Reserve de Beaulieu in Beaulieu, and
    • Le Saint Paul in Saint Paul de Vence

    I very much appreciate the fact that the Kiwi collection gives the urls of all their featured hotels, notwithstanding they do not have maps available on their site

  • Chic Retreats offers:

    Chic retreats could use maps on its site or give the urls of the property. However Lulu herself recently promised me to do the urls soon (she recently had asked the member hotels to provide them, but did get only one reply).

  • XO Private Collection just sent me an invitation by e-mail to join their XO Private Insider. I thought for a moment “Wow am I privileged”, but I now see you can click on it from its Main Page. I still do wonder from where the invitation came. I like the fact that they provide all info in a write up and simply link through to the website of the accommodation itself. It has (in addition to Eza and Cap d’Estel):
  • Luxury Culture suggests:
    • Hotel du Castellet in an old glass factory north of Bandol near Toulon, too far away for our present plans, but worthwhile to remember,
    • Domaine des Andeols North of Apt, an Alain Ducasse property, too far away but also to remember

    The luxury culture flash presentations are really nice to get good impressions of the properties and I would say a better impression than any video as yet could give

  • A fellow hotel blogger, Hotel Blogs 2.0, suggested:
    • Mas Artigny in St Paul de Vence [ed: Noted closed permanently in 2017], or
    • Villa St Maxime, near St Tropez
  • Another travel blogger in the know, Blog on Travel, suggested go to Clos des Arts from the SLH portfolio in Colle Sur Loup.
  • Then a very good friend of us mentioned Hotel Welcome in Villefranche sur mer. Oh I like that location: It is the second Bay west from Monaco and has a lot of shipping movements as it is frequented by mega yachts and by large cruising vessels who can anchor for free during a couple of hours or waiting until their berth in Nice is free to proceed or are seeking a nice location for a hop of for a stroll or a lunch ashore.

The Verdict:
I have split our stay over two hotels: Bastide Mathieu and Hotel Welcome.
Stay tuned for my reviews.
At least for future visits I can rely on this post which will help to save some time…

Last edited by GJE on December 6, 2011 at 7:24 am

Prometeus: The Media Revolution

I am glad that due to the previous post I am able to copy and paste You Tube videos here. Some interesting thoughts, apparently by an Italian Media company Casaleggio with the unavoidable Italian accent.

I found this presentation on Voysage Blog by a group of Aussies. Voysage seems to be on the verge of launching something new. Update October 25, 2009: They appeared never having launched. So I deleted the link and added this post to the Dead Travel Blog Society category.

Serving the Prosumers…..?

Before I even could post it, Kevin May was ahead of me.

Istanbul and the art of booking a hotel online: Nothing Zen! Part 2

After publishing part 1 of this story, I asked my friend the frequently traveling CEO, for suggestions, but alas he had no other suggestions than only Istanbul’s most expensive and luxury top hotels. So there I go with my conclusion in part 1.

My lady friend who organizes the trip for “Art en Route” came up with a travel agency that suggested following hotels:

and

Finally, however, on suggestion of the travel agent, a reservation has been made at the Celal Sultan Hotel.

We will see what will happen and I will keep you posted later this year.

Just for now I would like to conclude that at least for group travel a travel agent still seems a better bet than a DIY reservation. Especially because various hotels put only a small number of rooms available through travel portals or even through their own website, or have no possibilities to book well in advance.

25 Blogs on Architecture

I follow Architecture and Design with keen interest on the web, especially because many Dutchman have become known to stand out in the world of design and architecture.

With what I recently learned from using linkroll scripts from Deli.icio.us, I can easily reproduce a list I found via Archinet on Eikonographia of 25 “top” Blogs on architecture’.

Please note the reproduction below is in Alphabetical order, rather than on order of merit.

The list was compiled on the basis of Technorati’s incoming link ranking, the number of subscriptions via Bloglink and Google and Google images hits. As the writer comments: far from perfect, but at least a bit objective.

Anyway the Deli.icio.us ranking is again an other ranking than that of Eikonographia.

Added:

After publication of this post I Found out Eikonographia, is written by Michiel van Raaij, a Dutchman writing his thesis at our foremost Architecture University, TU Delft in Delft.