The Trouble With Facial Hair

Life is never fair. Some of us have too much hair, some too little, most have hair in places where we don't want it to grow. How do you get rid of undesirable hair? Bleach it? Shave it? Pay someone for the sadistic procedure of waxing, slow-torture tweezing, or peculiar and painful threading? You cry, you scream, you pity yourself for paying money for this suffering. Yet, you are still in luck if you are spending only tens or even hundreds of dollars on this tiny semi-visible nuisance. A number of years ago I had the "honor" of participating in a hair removal procedure that lasted weeks and cost around $10,000.

It was for the supporting character role in the movie “Stuart Little.” The cat character. And the unwanted hairs were his whiskers. We, the special effects crew, had the task of helping the cat to meow a couple smart sentences. For this, an eloquent talking mouth had to be rendered on top of the cat's real mouth and computer generated whiskers had to be animated and "painted" on the sides of the animated mouth. The problem was that the cat's true whiskers stuck out from behind the new animated whiskers. They had to be removed.

As you may imagine, there were suggestions of cutting the whiskers of our cat actors or painting them orange. But whiskers, unlike fur, will not grow back and they actually provide an essential survival feature, helping cats to assess their surrounding space. So, we were stuck searching for thin, semi-transparent, long evasive sticks in every image of the talking cat shots. 24 images per second x 10 seconds x 5 shots = 1200 images! In each one we had to detect something that was hardly visible, remove it and paint back the obscured, rich fur texture. Sounds complex just for whiskers. Especially since the cat does not even have a chance to win an Oscar.



The reason why this all had to look perfect is that each such picture is projected on a giant movie screen so that every pixel is blown to 1 inch by 1 inch square and imperfections magnified and noticeable. Remember this before allowing anyone to take your close-up intended for a large projection. Especially, if you have unwanted facial hair. We tried to erase whiskers from each image by hand: too slow. We tried algorithms that walk the image as a map and detect “mountains” or “ridges” in the image – whiskers were hardly separable from the fur. After a week of experiments we found a solution. First, apply color contrast adjustment to each image to emphasize the whiskers. Then, use a special technique to find the motion of each whisker part from frame to frame. The whisker regions were then automatically erased and a picture of a clear cat's fur substituted underneath. This painted piece of fur was propagated from one image to another by the same motion. And the final touches were done with a Photoshop style brush. One cat, three people, two weeks of work, lots of hairy math ideas. And less than a minute of a screen fame.

Would you like to read something different from The Math Mom? Perhaps Woody Allen, leftovers and math of school lunches.

23 comments:

  1. Selected two areas in this post are in fact the very best I have ever had.
    Diesel Engine Rebuilders Edmonton
    Diesel Engine Rebuilding Edmonton
    Diesel Engine Repair Edmonton
    Diesel performance parts canada
    Edmonton mechanics
    Mechanics edmonton
    http://www.pattypublished.com/optimize-your-vehicle-performance-with-ecm-tuning/

    ReplyDelete
  2. Your informative guidelines implies a lot a person like me and extremely more to my fellow workers.
    School staging
    Portable staging uk
    Staging for schools
    Top deck staging

    ReplyDelete
  3. I as well as my guys were found to be reading the excellent tactics from your web page while instantly I got a horrible suspicion I never expressed respect to the web blog owner for those techniques.
    computer herstellen
    Sage bob 50
    computer reparatie
    Harddisk recovery

    ReplyDelete
  4. It seemed to be the fearsome case in my circumstances, but being able to view this skilled fashion you solved the issue forced me to cry for delight.
    Art deco coving

    ReplyDelete
  5. It's not at all simplistic to just be giving freely tips and hints which often a number of people may have been making money from.
    Tent Manufacturing
    Table Rental kentucky

    ReplyDelete
  6. Almost all notice all about the compelling medium you convey priceless tips by means of this web site and even foster participation from other people about this area and our girl is without question becoming educated so much.
    Herpes Sores
    Herpes In Men

    ReplyDelete
  7. I needed to draft you the tiny word so as to say thanks the moment again on the lovely tricks you've shown here.
    cardiologist In Los Angeles

    ReplyDelete
  8. I think there are numerous more pleasant opportunities in the future for folks who check out your site.
    Harde schijf kapot

    ReplyDelete
  9. Thanks for sharing this post.It is very extraordinary post.
    <a href="http://examhelpline.in>Examhelpline</a>

    ReplyDelete

Note: Only a member of this blog may post a comment.