Slashdot Mirror


Content-Aware Image Resizing

An anonymous reader writes "At the SIGGRAPH 2007 conference in San Diego, two Israeli professors, Shai Avidan and Ariel Shamir, have demonstrated a new method to shrink images. The method is called 'Seam Carving for Content-Aware Image Resizing' (PDF paper here) and it figures out which parts of an image are less significant. This makes it possible to change the aspect ratio of an image without making the content look skewed or stretched out. There is a video demonstration up on YouTube."

174 comments

  1. Re:I For One by Shikaku · · Score: 0

    I thought JPEG already did this.

  2. The paper via ACM by xenocide2 · · Score: 4, Informative

    The author's website was pegged serving that 20MB PDF before slashdot got ahold of it, I doubt it'll survive now. The paper is also hosted by the ACM, if you're a subscriber.

    --
    I Browse at +4 Flamebait

    Open Source Sysadmin

    1. Re:The paper via ACM by spydir31 · · Score: 4, Informative

      The Coral Cache" has it also.

    2. Re:The paper via ACM by Anonymous Coward · · Score: 5, Informative

      I used a lossy compression algorithm on their paper and got this...

      Shrink image:
      Step 1: Run an edge detection algorithm.
      Step 2: Find minimal energy (least amount of edges crossed) path from top to bottom or left to right (graph-cut algorithm).
      Step 3: Remove pixels along that path.
      Step 4: Repeat steps 2 and 3 as necessary.

      Extend image:
      Step 1: Run an edge detection algorithm.
      Step 2: Find minimal energy (least amount of edges crossed) path from top to bottom or left to right (graph-cut algorithm).
      Step 3: Insert pixels along that path (interpolated from neighbors)
      Step 4: Repeat steps 2 and 3 as necessary.

      Remove objects:
      Step 1: Run an edge detection algorithm.
      Step 2: Mask object by giving its pixels low/negative energy values.
      Step 3: Find minimal energy (least amount of edges crossed) path from top to bottom or left to right (graph-cut algorithm).
      Step 4: Remove pixels along that path.
      Step 5: Repeat steps 3 and 4 as necessary.

    3. Re:The paper via ACM by Anonymous Coward · · Score: 5, Insightful

      I think you've got it except for a small detail in the "Remove objects", which the narrator alludes to around timestamp 4:01 of the video. You might want to add:

      Step 6: Extend image to match original size using the previous extend image algorithm

      (Of course, I leave the obligatory Profit step as an exercise for the reader).

    4. Re:The paper via ACM by DotDotSlasher · · Score: 2, Informative

      This excellent website http://trowley.org/sig2007.html has a host of links to almost all of the papers presented at SIGGRAPH 2007.

    5. Re:The paper via ACM by Anonymous Coward · · Score: 0

      And the full resolution demo video.

    6. Re:The paper via ACM by Anonymous Coward · · Score: 0

      ..or googlebot.

    7. Re:The paper via ACM by Anonymous Coward · · Score: 0

      Preserve objects:
      Step 1: Run an edge detection algorithm.
      Step 2: Highlight object by giving its pixels ultra-high energy values.
      Step 3: Find minimal energy (least amount of edges crossed) path from top to bottom or left to right (graph-cut algorithm).
      Step 4: Remove pixels along that path.
      Step 5: Repeat steps 3 and 4 as necessary.

      Used for keeping important aspects such as human faces intact.

    8. Re:The paper via ACM by Anonymous Coward · · Score: 0

      Shrink image:
      Step 1: Run an edge detection algorithm.
      Step 2: Find minimal energy (least amount of edges crossed) path from top to bottom or left to right (graph-cut algorithm).
      Step 3: Remove pixels along that path.
      Step 4: Repeat steps 2 and 3 as necessary. Step 5: ?????
      Step 6: PROFIT!

      I'm really, really sorry :-(
    9. Re:The paper via ACM by skoot65 · · Score: 1

      How to play the flute 1) Blow in one end 2) Run your fingers up and down the sides Viola! (with apologies to MP)

  3. Great by Anonymous Coward · · Score: 0

    I really like the way where the people are erased and you can hardly notice it. But the when it comes to the faces, the algorithm seems to need more work.

    1. Re:Great by pclminion · · Score: 1

      I really like the way where the people are erased and you can hardly notice it. But the when it comes to the faces, the algorithm seems to need more work.

      The authors have already demonstrated how automated face recognition could be applied to protect face-like areas on the images. I'm not sure what else you want.
    2. Re:Great by compro01 · · Score: 2, Funny

      I'm not sure what else you want. for it to automatically remove less-significant faces.
      --
      upon the advice of my lawyer, i have no sig at this time
  4. Holy crap, this is awesome. by samwh · · Score: 1

    I wonder when we can get their software that does this...? The "erase" function almost seems like a better then image inpainting.

    1. Re:Holy crap, this is awesome. by Anonymous Coward · · Score: 0

      If the algorithm isn't patented, you'll quickly see implementations. Once you've seen it, the algorithm is almost trivial: Run an edge detection algorithm, find minimal energy (least amount of edges crossed) path from top to bottom or left to right (that's a graph-cut algorithm), remove pixels along that path. Repeat step 2 as necessary.

  5. Impressive by CastrTroy · · Score: 1

    Watching the video, this seems pretty impressive. It's also neat to see them use the same technology to remove items (people in this case) from an image with only about 10 seconds of work.

    --

    Anthropic principle: We see the universe the way it is because if it were different we would not be here to see it.
    1. Re:Impressive by HTH+NE1 · · Score: 1

      Watching the video, this seems pretty impressive. It's also neat to see them use the same technology to remove items (people in this case) from an image with only about 10 seconds of work. The real-time removal by manual resizing is only after a long image analysis phase beforehand to find the paths of least energy and index them. Once those numbers are crunched, it becomes a very simple operation to remove/insert along the paths of pixels.
      --
      Oh, say does that Star-Spangled Banner entwine / The myrtle of Venus with Bacchus's vine?
  6. nice! by White+Shade · · Score: 4, Interesting

    It seems like a little bit of work is left to make it as completely automated as you would need to have it just "always work" on any platform or device, but it seems like they're already working on that...

    Other than that though, that's pretty awesome... I'm sure there's more instances where it doesn't look right than what they showed, but it's definitely cool how well it works as it stands!

    I can imagine it would be extremely useful for ex-boyfriends or ex-girlfriends; just load up all their photos of them and their ex, wave the magic eraser, and *boom* you don't have to delete all your old vacation shots ;)

    I wonder how well it would work for the porn industry too; nice automatic resizing of breasts without ruining the picture! Fetishists will be SO happy! :)

    --
    ìì!
    1. Re:nice! by Allicorn · · Score: 2, Interesting

      It seems like a little bit of work is left to make it as completely automated as you would need to have it just "always work" Completely right, yes. The images in the video have been selected to show this technique in the best possible light. There's a great variety of images that'll really not work quite right with a completely automated treatment. Speaking from experience having implemented this last week.

      That said, as pointed out in the paper there's plenty of room for a higher level of analysis over the top of the basic seam-carving procedure. The function used to calculate the energy of a given pixel is easily swapped out with any one of dozens of different approaches. A more user-friendly implementation could attempt seam-carving based on a number of different feature maps and work out which is likely to produce the least distortion for a given image.

      Anyhow, cracking bit of work IMHO, with boatloads of potential applications.

      Alli

      --
      OMG!!! Ponies!!!
    2. Re:nice! by PsyQo · · Score: 1

      We didn't even have ONE girlfriend, let alone an ex, you insensitive clod!

    3. Re:nice! by ceoyoyo · · Score: 1

      Problem is you have to remember to keep some nice featureless space between you and your boy/girlfriend in case you want to erase them afterwards. Unless you don't mind becoming an amputee in your photos, that is.

    4. Re:nice! by aliquis · · Score: 5, Funny

      I'd never understod this hate-your-ex-thing? The person where part of your life for some time but you have decided to hate it and want to erase it from it?
      Better never get a partner then at all if you are going to hate the person once it doesn't work longer.

      But then I'm a regular slashdot visitor and don't have any exs so what do I know.

    5. Re:nice! by Thalagyrt · · Score: 1

      Sometimes keeping a friendship after severing those types of ties can be hard as hell just because of all of the emotions involved -- it can be painful to see or hear about them. I only really understand the hate-the-ex thing in certain circumstances (cheating, being a total bitch/asshole/whatever) but in general if it's possible to keep a friend then keep a friend. It's just tough, which overall leads most people to just shut out their exes entirely... I'm currently trying to keep my friendship with my ex from completely falling apart, it's simply not an easy thing to do.

      --
      Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo!
    6. Re:nice! by Original+Replica · · Score: 1

      I'd never understod this hate-your-ex-thing?

      Pay alimony for awhile and I'm sure you'll understand it much better.
      Most of the bitterness arises because you didn't get a good return on your investment of time/love/money/etc. You expected lifelong compatibility, but got a partner that has a significant personality change in the first few years of you relationship. I take more of a "high price of a lesson learned" view of relationships that ended badly, but then I just toss the photos and old cutesy stuff out, no need to try to edit it.

      --
      We are all just people.
    7. Re:nice! by Anonymous Coward · · Score: 0

      The hate thing is a natural self-defense mechanism that helps you move on instead of getting attached to the we-were-happy-why-did-we-brake-up feeling. Also, whether you dumped your partner or you were dumped, brake-ups usually involve a big deal of pain that you will most likely associate with your ex.

      So in summary, hating them is a good way of not missing them, especially if you are not really over them yet.

    8. Re:nice! by Anonymous Coward · · Score: 0

      it's about betrayal

    9. Re:nice! by pclminion · · Score: 1

      I'd never understod this hate-your-ex-thing? The person where part of your life for some time but you have decided to hate it and want to erase it from it? Better never get a partner then at all if you are going to hate the person once it doesn't work longer.

      Sometimes the reason it doesn't work any longer is because you've grown to hate the person.

      I don't think any reasonably adjusted person would culture hatred for a past parter just because the relationship didn't work out. People who do otherwise are just being childish.

    10. Re:nice! by Chris+Pimlott · · Score: 1

      You'll notice most of their example images have generous amounts of low-detail "empty space" - sky, water, sand, etc. As they point out, it falls down wrt to higher level semantics, or in high detailed backgrounds. I doubt you would ever get this to a point where you could trust it to "just work" at any size or aspect ratio (at least not without a lot of prep working hinting the important parts of the image, as they show). I see it rather as a useful artist's tool in editing and manipulating images. You need a higher level system monitoring the process that understands when an unacceptable choice has been made, e.g. cutting text in half or squashing someone's face.

    11. Re:nice! by Feanturi · · Score: 1

      It doesn't have to be hate that makes you throw out all the stuff that reminds you of them. The pictures, letters, knick-knacks, whatever, conjure memories of when you were happy with them. This brings much pain because it is a strong reminder that they are not there now and not coming back. I think a reasonably adjusted person would not wish to live in a shrine of lost memories. Get rid of it and you can get on with life all the sooner.

    12. Re:nice! by Explodicle · · Score: 1

      Ever see "Eternal Sunshine of the Spotless Mind"?

    13. Re:nice! by Alaria+Phrozen · · Score: 1

      Spoken from someone who obviously doesn't have a collection of returned, meticulously torn photos where the ex very carefully excised herself from each photo. Now I have excellent reminders of the loss, kthnx.

    14. Re:nice! by vux984 · · Score: 1

      I'd never understod this hate-your-ex-thing? The person where part of your life for some time but you have decided to hate it and want to erase it from it?

      There's nothing quite like the crushing anguish of being used, deceived, betrayed, lied to, and cheated on by someone you are in love with and trust implicitly.

      You can't easily 'cherish' the once happy memories because they are all tainted by your exes deceipt.

      Imagine your father or uncle died, and you have all these memories of going to the beach together. When you recall these memories or see those photos its bittersweet; they are happy memories, but they remind you he's passed away, and that's a painful memory. This isn't like that.

      This is something else entirely, its like finding out that he was a pedophile and took you to the beach because he liked to take pictures of you in a bathing suit. Suddenly those 'good memories' are repulsive and make you sick to the stomach. Seeing those 'happy memory' pictures just reminds you of the betrayal.

      All the hugs... all the times he smiled at you, they are tainted forever.

      Better never get a partner then at all if you are going to hate the person once it doesn't work longer.

      No, better to risk it. You don't KNOW its going to end. And you don't KNOW that its going to end in lies. Lots of people break up amicably after all.

      The key, unsurprisingly, is honesty. If both people are honest about their feelings throughout the relationship and it ultimately ends, it may still be very painful and disappointing for one or both people, but the entire history isn't tainted by betrayal. There is a very decent chance that once you get over it you can recall the good times fondly, and even be friends.

    15. Re:nice! by aliquis · · Score: 1

      Do people really expect lifelong relationships? I thought one where supposed to get a lot back, if one doesn't one might rather quit it immediatly.

      Also regarding time I watched some TV program about it and how hormones worked and I got the impression that the first "fall in love" part only lasted for two years or whatever it was, but then it stops and people who stay rather do so because they have become so good friends and like eachother that way. But still, what do I know =P, some peoples attention only stays for a month or so aswell but I guess that is when they realize they really aren't in love at all only horny. If I remeber it right sex lead to stronger bondage somehow aswell.

    16. Re:nice! by Anonymous Coward · · Score: 0

      You like being tied up ? ... lol..

    17. Re:nice! by ACDChook · · Score: 1

      You don't KNOW its going to end. And you don't KNOW that its going to end in lies. Yes you do - it's human nature. We're untrustworthy creatures at heart.

      Seriously, this whole 'love' myth needs to be stopped. 'Love' is a just a biochemical reaction to physical contact with a member of the opposite sex, designed to keep a breeding pair together to keep offspring alive. No more, no less. Unfortunately, with couples not breeding these days as we evolved to do, relationships end once the 'love' chemical wears off, and people go looking for a new breeding partner.

      2-3 years is how long most relationships last these days without offspring, due to the biological imperative to stop wasting time. If a couple doesn't break up first, one of the partners WILL cheat and bring the whole thing crashing down. It's inevitable. And anyone who has been in a relationship longer than that, with no kids, and thinks that their partner has been faithful, is kidding themselves. If you take the moral high ground and not cheat, then your partner will pick up on that as a biological weakness, and go astray, guaranteed.
    18. Re:nice! by hab136 · · Score: 1

      Do people really expect lifelong relationships? I thought one where supposed to get a lot back, if one doesn't one might rather quit it immediatly.

      He mentioned alimony and "first few years" - in other words, things were presumably good, he married her, and *then* she changed and they split. So yes, he did expect a lifelong relationship (that's what marriage is supposed to be). It's a very common story.
    19. Re:nice! by Anonymous Coward · · Score: 0

      > I'd never understod this hate-your-ex-thing?

      Perhaps you will better understand when: 1-year into a relationship and the day after your father's funeral your fiancee tells you that she is now engaged to her previous boyfriend, and that your engagement to her was just leverage she used on him. Oh, and this is just 1-week after you quit your job with plans to move to the coast (because she wanted to) - then spend 6-months unemployed looking for a new job.

      > Better never get a partner then at all

      Or just use prostitutes. In the long run they are much cheaper and more honest.

    20. Re:nice! by fbjon · · Score: 1

      Thankfully not everyone are like that, though perhaps the majority might be..

      --
      True confidence comes not from realising you are as good as your peers, but that your peers are as bad as you are.
    21. Re:nice! by Anonymous Coward · · Score: 0

      This won't mean much now, but years from now you'll look back, and think how lucky you were to escape a long-term relationship with her. Sorry about your dad, though.

    22. Re:nice! by vux984 · · Score: 1

      Yes you do - it's human nature.

      No we don't. Many relationships last a lifetime.

      And there is nothing inherently wrong with short relationships. They don't have to end in a crushing heartbreak. You can be in a series of short relationships without emotionally scarring everyone you come into contact with; if you are honest with your partner.

      We're untrustworthy creatures at heart.

      Maybe you are. I have enough respect for myself and for others that I don't go around needlessly hurting the people who care for me. As a result I've parted with exes as freinds, or became friends after getting over the breakup. (Which was possible because although we were no longer 'in love', we still had common interests, and respect for each other as human beings.-- something you are not going to have if you lied, cheated, and used your ex.)

      'Love' is a just a biochemical reaction to physical contact with a member of the opposite sex, designed to keep a breeding pair together to keep offspring alive.

      Which is why getting together just for 'love' rarely lasts. But combine love, respect, and friendship and you have something a lot more solid, something that *can* last.

      If you take the moral high ground and not cheat, then your partner will pick up on that as a biological weakness, and go astray, guaranteed.

      Hardly. Taking the moral high ground and respecting your partner creates a positive feedback loop. They might still lose interest in you as a 'lover' but if there is respect and friendship between you there is a better chance they will end the relationship 'honorably' rather than lie to you or use you.

    23. Re:nice! by HTH+NE1 · · Score: 1

      We didn't even have ONE girlfriend, let alone an ex, you insensitive clod! There are options there too. If you can just get yourself in a photo with someone else, you can then delete the empty space between you to make you look like you're together.

      So it's a great tool not just for breakups but for stalkers as well!

      I wonder how good it will be with moving pictures. How well can it remove Jar-Jar Binks while minimizing exposing artifacts across continuous frames?
      --
      Oh, say does that Star-Spangled Banner entwine / The myrtle of Venus with Bacchus's vine?
    24. Re:nice! by fruey · · Score: 1

      I don't understand it either. But just ask my wife, she hates my ex(s). She'd like to be able to erase them from old photos still hanging around here & there.

      --
      Conversion Rate Optimisation French / English consultant
  7. Practical uses by themushroom · · Score: 2, Funny

    Finally, a way to reduce the space between surgically augmented breasts and lengthen wangs on Flickr!

    1. Re:Practical uses by AchiIIe · · Score: 1

      > Finally, a way to reduce the space between surgically augmented breasts and lengthen wangs on Flickr!

      I see your reduced breasts and raise you a 'Seam Carvied Content-Aware Resized Image' midget porn. Guess who Elizabeth Hurley looks like now.

      --
      Nature journal lied in Britannica vs Wikipedia Ask to retrac
    2. Re:Practical uses by Anonymous Coward · · Score: 0

      Ohh I love trannies

    3. Re:Practical uses by Anonymous Coward · · Score: 0

      Too bad this is just automated cropping and scaling. It doesn't actually manipulate the image.

      Likely, from the description, it would zoom in on areas with lots of edge changes, like a nipple. Me, personally, would rather see the whole rack than a nipple.

    4. Re:Practical uses by fractoid · · Score: 1

      S.C.C.A.R.I.? I'll say it sounds scary! >.>

      --
      Rampant carbon sequestration destroyed the Dinosaurs' tropical paradise. I'm here to help repair the damage.
  8. Slightly Strange by JamesRose · · Score: 3, Interesting

    Okay, I get that they remove the pixels with least energy, so the unimportant information is lost when shrinking, it kinda works, looks a bit strange, but it's okay. however, when they make an image larger they also add the least information so you end up with a large image- but the useful information is the same size and the extra/useless low energy or background gets duplicated- to me, I think thats kinda pointless, I mean, you're adding stuff you've analysed and found NOT to be the focus of the picture. This may work for pictures with no obvious background, but lanscapes like one of the examples, have such an obvious background that only that gets enlarged and just gives you more background. You may aswell just add a nice blue frame round the edge of the picture to make it fit.

    1. Re:Slightly Strange by Anonymous Coward · · Score: 2, Interesting

      when they make an image larger they also add the least information so you end up with a large image- but the useful information is the same size and the extra/useless low energy or background gets duplicated- to me,

      According to the video, the added background information is actually the averaging of the extra "low energy" information around it. So it's not quite duplicated.

    2. Re:Slightly Strange by Raenex · · Score: 1

      You may aswell just add a nice blue frame round the edge of the picture to make it fit. The whole point is to avoid artificial techniques that stand out, like frames. A trivial application would be expanding an image to fit as your desktop background. If you're trying to fit a picture into a rectangle with particular dimensions, you may want to both squeeze it one dimension *and* expand it in another to give you the most natural looking effect.

      For example, think how a 4:3 TV screen often displays wide-screen movies: They scale (shrink) the image to fit and put bars on the top and bottom. Instead of doing that, they could both push it in on the sides, and if they could only push it so far before losing too much information, fit the rest by scaling and then expanding the top and bottom. That would result in less scaling and no bars.

      Or consider the opposite: Some widescreen TVs expand 4:3 media to avoid bars, but they do so by stretching the image horizontally.
    3. Re:Slightly Strange by Korveck · · Score: 1

      Isn't this exactly what the method intends to happen? The part with high energy (importance) should remain undistorted when you expand or shrink the image. If you expand the high energy parts, they either become less clear or appear stretched.

    4. Re:Slightly Strange by CastrTroy · · Score: 1

      I just wish windows would support resizing an image for your desktop without changing the aspect ratio. I think they had this in Linux about 6 years ago. And I'm pretty sure it's still not in Windows Vista. Come on, it isn't that hard.

      --

      Anthropic principle: We see the universe the way it is because if it were different we would not be here to see it.
    5. Re:Slightly Strange by Nutty_Irishman · · Score: 4, Insightful

      I think you're missing the point of their method, which is to provide realistic images during rescaling that aren't corrupted by blind interpolation (equal averaging). In downscaling the images, it preserves parts of the images that would lose their information through downscaling (e.g. complex textures, people), while at the same time removing textures that would not lose information through downscaling (sky, water, sand). The sky, water and sand will still look like sky water and sand whether it's at 1/4 or 10x resolution, people however look much different if you try and downscale them or upscale them(they would appear blurry and hard to distinguish). The same works in reverse. The sky is still going to look like the sky whether you scale it to 10x or 5x-- it would still look natural. Tree's on the other hand, would not. Once you start to scale up the trees you would expect to be seeing different characteristics-- leaves, branches, etc. Any type of scaling up of a tree would make it seem very blurry and unnatural (lacking leaves, branches, etc.)-- you cannot create an additional information that isn't present in the original image. Therefore, the most natural looking image would be to increase the sky.

      It's not perfect of course. I'm guessing that if you had a picture of two people next to each other, one with a solid colored shirt, and the other with a striped colored shirt, that the solid colored shirt guy would get skinner than the striped when shrinking, and the reverse when enlarging. However, it's a neat idea, and I look forward to reading the paper.

    6. Re:Slightly Strange by Anonymous Coward · · Score: 0

      Seems this could be used to re-process old videos for modern wide format screens.

    7. Re:Slightly Strange by maxume · · Score: 1

      It's probably worth noting that this technique is exactly not rescaling the image. It alters the content of the image(or produces new similar content!) in order to change the aspect ratio while preserving unique elements of the image. 'Scaling' very much implies that the transformation will be linear.

      --
      Nerd rage is the funniest rage.
    8. Re:Slightly Strange by Rhapsody+Scarlet · · Score: 1

      I'm guessing that if you had a picture of two people next to each other, one with a solid colored shirt, and the other with a striped colored shirt, that the solid colored shirt guy would get skinner than the striped when shrinking, and the reverse when enlarging.
      The video describes a way to 'protect' areas of an image to make sure that doesn't happen. The way described sounds very easy as well.
    9. Re:Slightly Strange by 42forty-two42 · · Score: 1

      On the contrary - Microsoft can make anything hard, if they try.

    10. Re:Slightly Strange by theguyfromsaturn · · Score: 1

      Yes. It is image resizing. Not image rescaling. It is GREAT for general web layout (images that should be scaled this way should have a new property set in the image tag). It's not good when you want to actually rescale an image while preserving aspect ratios of all components. But for web page component layout, this is Awesome. As well as for desktop wallpaper resizing. Rescaling doesn't always produce the desired results in those cases. Aesthetics are more important there than fidelity of original image.

      --
      I like my dinosaurs feathery, and my pterosaurs hairy (or is it pycnofibery?)
  9. Re:I For One by cnettel · · Score: 3, Insightful
    It's not compression as we know it, Jim. It's more like scaling on totally overcool steroids. The basic idea seems rather simple. I would even imagine you could get a bit of enhanced picture quality by coding simplified vector info on seams, and then doing a normal JPEG of a downscaled picture. That would be a quite contrived way to get a kind of VBR-like behavior in normal JPEG. One issue with JPEG is, after all, that redundancy is detected and handled on the block level, while this algorithm works along arbitrary paths.

    I'm really impressed. Again, maybe not too hard to implement at first, but probably damn hard to get working perfectly, and I might just be ignorant (and I'm entitled too, it's far from my field of work), but I've not seen anyone doing it before.

  10. A picture speaks a thousand words... by Aphrika · · Score: 3, Insightful

    So does this mean you're taking some of those words away?

    There are probably a few situations where the 'unimportant' bits of an image are still as relevant as the rest. Sports photos for instance - especially those played on grass - would not give you a true picture (literally) of what's going on in the scene.

    This'd be good for reference photos - like the animals at the start of the YouTube video, but applications where precision and distance are required wouldn't benefit. Nice bit of work though and I reckon with some smart scaling embedded too (rather than its 'folding effect'), it'd cater for most image retargetting requirements.

    1. Re:A picture speaks a thousand words... by itzdandy · · Score: 1

      just to clarify, this is good for fitting content into spaces where it would not fit otherwise, not just a method to reduct image size. on a pda phone for instance, one might prefer to see the modified image of a football scene rather than not be able to see it at all for lack of screen real-estate.

    2. Re:A picture speaks a thousand words... by Mal-2 · · Score: 1

      It's the Reader's Digest Abridged Version (Photo)!

      There are circumstances where it makes sense to abridge (or retarget) and others where it makes more sense to simply rescale. Since this appears to allow the content provider to choose the method that will be used, the overall effect should be fairly acceptable. For existing content, and future unmarked content, some guesswork will be necessary, and I would imagine this is going to be the hardest part. Computers still can't "see", so getting them to assign the same priorities to pictured objects as we would is going to be a difficult task, though one that is likely to have applications far beyond the mere manipulation of images.

      Mal-2

      --
      How is the Riemann zeta function like Trump rallies? Both have an endless number of trivial zeros.
    3. Re:A picture speaks a thousand words... by Fred+Ferrigno · · Score: 5, Informative

      It's not removing any more pixels than normal resizing or cropping would, it's just doing it such that the least important ones are removed first. Instead of:

      he uic bownfoxjumed verthelaz yelowdog

      You get:

      Th qik brwn fx jmpd ovr th lzy ylo dog

      Which reduces the total size by the same amount, but retains more information than treating every bit of information the same.

    4. Re:A picture speaks a thousand words... by flappinbooger · · Score: 1

      Wow, that's a great analogy. Which, for /., is nice!

      lol.

      --
      Flappinbooger isn't my real name
    5. Re:A picture speaks a thousand words... by GraZZ · · Score: 1

      /me wants a car analogy. This is /. afterall.

    6. Re:A picture speaks a thousand words... by random735 · · Score: 5, Interesting

      while this is technically true, you're also rearranging the relative positioning of those pixels. cropping something out doesn't change the relationship of what is left in the photo (though it may remove critical details).

      if you have 3 people in a picture and you crop it down to 2, you've erased a person, but you haven't changed who is seated next to whom. if you use this method and the middle person is erased, you make it appear as though the outer two people were in fact seated next to each other when they weren't.

      we are used to the idea that a picture can be cropped (mentally considering what might be just outside the frame). We aren't yet used to the concept that the photo has effectively been cut and pasted together to create new relationships between the objects in the photo (though of course photoshop is getting us there).

      to continue your analogy, if we take:
      the quick brown fox jumped over the lazy dog

      and drop letters, we can create:
      the cow jumped over the dog

      whereas "cropping" might let us say:
      the quick brown fox jumped

      I think it's clear that one of these is more misleading than the other, though in both cases you're just removing information. (in one case, some of that information happens to be spaces between letters/words)

    7. Re:A picture speaks a thousand words... by zippthorne · · Score: 2, Insightful

      I don't know whether I'm "used to it" or not, but after watching the video, I'm totally ready for more intelligent image resizing that isn't quite scaling. Most of the applications I see this being used in don't really require that the exact photographic position (which really isn't the same as what you'd see if you were there) relationships be maintained anyway.

      Hopefully someone will write a GIMP plugin and we can all experiment with it. Also a firefox plugin. Obviously some metadata will eventually need to be included in the the images to delineate faces and whatnot, but web designers can easily handle sloppy painting-over in photoshop type tasks.

      --
      Can you be Even More Awesome?!
    8. Re:A picture speaks a thousand words... by pclminion · · Score: 2, Insightful

      There are probably a few situations where the 'unimportant' bits of an image are still as relevant as the rest. Sports photos for instance - especially those played on grass - would not give you a true picture (literally) of what's going on in the scene.

      Sorry -- "true picture?" That assumes such a thing can exist in the first place. Take a color-blind viewer for instance. Can he (and I say he because statistically, most color-blind people are male) look at ANY image and say that he is seeing the "true image?" How is his experience any more or less true than the experience YOU have when you look at the image?

      Any scaling of an image, by definition, must remove (or insert, if up-scaling) information in an image. Usual scaling techniques insert or remove a constant information density across the image. This means that areas with low information lose just as much fidelity as regions with high information. A better method would have removed more information from the area that is already low in information to begin with, leaving more information in the area where it matters. This is exactly what this new algorithm does.

      So it is fairly obvious that this method is superior, from a purely information-theoretic standpoint, to typical scaling algorithms. Are there images where its application might be inappropriate? Yes. Compressing an image of an abstract piece of art might do unforgivable damage to it. There is a simple solution -- do not use this algorithm on such images.

    9. Re:A picture speaks a thousand words... by random735 · · Score: 1

      don't get me wrong, this is a very cool technology with plenty of legitimate uses. i just wanted to call out the difference between cropping and what this is doing, in terms of losing image information/context.

      given the choice of an image which is cropped, or an image which had this done to it, if i'm trying to use the image to reconstruct the "truth" of a scene, i want the cropped image. it's at least slightly less artificial.

      but for practical applications, such as browsing the web on a 320x320 screen, yeah, this is definitely good stuff.

    10. Re:A picture speaks a thousand words... by Feanturi · · Score: 1

      Ok, so it's like you've got a car, and you find a line through it that doesn't have many intersections. So you take a cutting torch to that spot and slice through the car. And then you, uh... attempt to claim to your insurance company that this somehow happened in a car wash. Some new laser-operated one, yeah that's the ticket. And then you promise yourself to never make a bet while drunk ever ever again.

    11. Re:A picture speaks a thousand words... by Anonymous Coward · · Score: 0
      This sentence used to contain all letters in the alphabet, but you are missing one out. The correct sentence is:

      The quick brow fox jumpes over the lazy dog.
      This is like reading a joke about prime numbers that starts with the number 1...
    12. Re:A picture speaks a thousand words... by Jasin+Natael · · Score: 1

      Exactly. I keep seeing this as an extension to HTML, and what I'm coming up with is this (or the same in CSS, actually):

      <img src='./file.jpg' retarget='1' scalebelow='40%' mask='./file.mask' />

      All the parameters should be automatic by default, especially scalebelow -- on auto, once the least-important path in the image exceeds a given complexity, the algorithm would switch to simply scaling down the previously-smallest retargeted image. All in all, pretty exciting stuff for web design. Especially if you want to take a landscape photo or some such and stretch it into a background image along one or both axes.

      --
      True science means that when you re-evaluate the evidence, you re-evaluate your faith.
    13. Re:A picture speaks a thousand words... by fbjon · · Score: 1
      The point of the sports example is that this type of smart resizing would change e.g. the positioning of players on a field, making the situation completely different.


      This brings to mind, what about resizing of video?

      --
      True confidence comes not from realising you are as good as your peers, but that your peers are as bad as you are.
    14. Re:A picture speaks a thousand words... by fractoid · · Score: 1

      OK. Two people each want to make their car weigh 50kg less. Person A cuts his* car into 50cm slices, cuts the first 1cm off each slice, then welds them back together. That's the normal method; linear interpolation. Person B takes out the rear seats, sound insulation, and spare tyre. That's the new method; throw out the stuff you don't need while keeping the important stuff like driver's seat and pedals.

      --
      Rampant carbon sequestration destroyed the Dinosaurs' tropical paradise. I'm here to help repair the damage.
  11. The Commissar Vanishes by Anonymous Coward · · Score: 1, Funny

    This technology could render very visually-convincing (but not computer/analytically convincing) image censorship or alteration. I am strongly reminded of this example of photo-editing from the 1940s:

    http://www.newseum.org/berlinwall/commissar_vanish es/vanishes.htm

    I don't mean to instigate a knee-jerk, authoritarian censorship discussion. I think it's obvious that this technique is just plain cool and has great potential for beneficial use, even if it might be used for ill. That's just an intersting historical example that it might have made easier in execution (har-har; gallows humor and pun 2-for-1!).

    1. Re:The Commissar Vanishes by tomhudson · · Score: 1

      "This technology could render very visually-convincing (but not computer/analytically convincing) image censorship or alteration. I am strongly reminded of this example of photo-editing from the 1940s:

      http://www.newseum.org/berlinwall/commissar_vanish es/vanishes.htm "

      Need I remind you, komerade, kommisar Nikolai Yezhov was originally ADDED to pikture, and that our Ministery of Truth only restored the photo to original kondition? Everyone knows that in Soviet Russia, photo alters YOU! Now, your papers, please. And remember to smile for the kamera, komerad.

    2. Re:The Commissar Vanishes by Glytch · · Score: 1

      I agree. This is a very cool technology, but definitely underscores the trust problem in journalism. We're fast approaching (and some would say long past) the point were we need digital signatures for photos published on news sites. People need to know that what they're told is reality is actually reality. I think this software is fine for any sort of photography where reality isn't as important as aesthetics (artistic landscapes, portraits, abstracts, fine art, etc) but it has no place in ethical photojournalism.

    3. Re:The Commissar Vanishes by Lars+T. · · Score: 1

      Yeah, Americans would never stoop so low - they gloriously reenact the photo op. Much more honest that way.

      --

      Lars T.

      To the guy who modded me down from perfect to terrible Karma - Apple haters still suck

    4. Re:The Commissar Vanishes by larry+bagina · · Score: 2, Interesting

      It could be worse.

      In December 2001 The New York Fire Department unveiled plans for a statue based on the photograph to be placed at the Brooklyn headquarters. In an effort to be politically correct, the statue was to include black, white, and Hispanic firefighters. However, it was cancelled in an outcry about rewriting history -- the depicted firefighters are white.

      --
      Do you even lift?

      These aren't the 'roids you're looking for.

    5. Re:The Commissar Vanishes by Original+Replica · · Score: 1

      There is already so much "spin" in modern journalism that you have to learn about any event of importance from sources that you know are biased in opposite directions, just to be able have a good guess at the actual facts. This is why you get more truth from The Daily Show than you do from Fox News or Air America, The Daily Show's spin is obvious because it's funny and/or ridiculous.

      --
      We are all just people.
    6. Re:The Commissar Vanishes by Anonymous Coward · · Score: 0
      Well, if the ease of manipulation makes people a bit more circumspect about imagery, that's at least one good effect. The realism of photos gives people a heady sense of omniscience. But even if the picture has not been changed, and if the scene has not been staged, it's still only one small slice of what happened, and can give people the dangerous idea that they know everything that happened, will happen, or should have happened.

      "The general killed the Viet Cong; I killed the general with my camera. Still photographs are the most powerful weapon in the world. People believe them; but photographs do lie, even without manipulation. They are only half-truths.

      What the photograph didn't say was, 'What would you do if you were the general at that time and place on that hot day, and you caught the so-called bad guy after he blew away one, two or three American people?'"


      -Eddie Adams
    7. Re:The Commissar Vanishes by ArcherB · · Score: 1, Informative
      --
      There is no "I disagree" mod for a reason. Flamebait, Troll, and Overrated are not substitutes.
    8. Re:The Commissar Vanishes by Anonymous Coward · · Score: 1, Insightful

      PC.. The 'correctness' part of the phrase really irks me. It's censorship, propaganda and thought police all at the same time. At least with a bigot you know where you stand - with a PC freak nothing is sacred, noone is safe. Our society would be far better off with blatant racism over this politically correct crap any day - at least racism is in the realm of debatable idiocy, the kind of PC stupidity you presented just has no rational, logical or sane evaluation possible.

    9. Re:The Commissar Vanishes by tomhudson · · Score: 0, Troll

      Citizen, you have resurrected the vanished komissar. This is prohibited by the DMCA and the PATRIOT Act. We kannot tell you exactly what you have infringed, that too is klassified as anti-capitalist behaviour.

      You are obviously a either a kommunist or suffering some form of mental incapacity. Fortunately, in Soviet Amerika, we are generous, and give you the benefit of the doubt. We have reserved a room for you at the Gitmo Health Cpa and Vakation Resort.

      Your bank account has been pre-billed so you kan take advantage of our generous discount rates.

      We will take kare of informing your relatives, to spare you any embarrassment; Please sign this blank konfession^Wletter to them.

      This is a picture of the last person who failed to show up for their health treatments. These are pictures of his family. Yes, it is most unfortunate, they were obviously deranged.

      "- - My name is George Bush, and Dick Cheney Says I Approved This Message"

    10. Re:The Commissar Vanishes by uncqual · · Score: 1

      Although I agree with your sentiments about the statue, I don't think that most people viewing a statue (which is really a work of art) would expect it to be an authoritative and precise rendition of the situation depicted. This seems a bit different than altering a photo in a substantive fashion (as opposed to, say, altering the contrast or "brightness" to attempt to compensate for the limited dynamic range of the original media). I kinda liked the idea of diversity in the statue but, since it was based on a specific photo (as opposed to an artist's creation), to modify it just to "adjust the diversity" seemed inappropriate.

      (But don't get me started on those "false color" photos from the Hubble - an entire generation of children is going to grow up thinking space is very colorful and be very disappointed when they are jettisoned into it :) Of course, an alarming number of Americans think that dinosaurs and "cave men" roamed the earth together - perhaps because of cartoons and comics?)

      --
      Why is there an "insightful" mod and why isn't it "-1"? If I wanted insight, I wouldn't be reading /.
    11. Re:The Commissar Vanishes by compro01 · · Score: 2, Insightful

      I think it's obvious that this technique is just plain cool and has great potential for beneficial use, even if it might be used for ill. what do you expect? it's technology. technology works to the highest bidder, not the people with the highest morals.
      --
      upon the advice of my lawyer, i have no sig at this time
    12. Re:The Commissar Vanishes by nospam007 · · Score: 1

      I don't mean to instigate a knee-jerk, authoritarian censorship discussion. I think it's obvious that this technique is just plain cool and has great potential for beneficial use, even if it might be used for ill.
      --
      When it ships, every hotel on the planet will have bigger rooms on the web overnight.

    13. Re:The Commissar Vanishes by larry+bagina · · Score: 1

      It's (or would have been) a statue. Is the race relevant? Is Token Black going to hold a watermelon and a bucket of fried chicken? Will Token Hispanic wear sombrero? And they'll also need to add a 4th Asian firefighter -- slanty eyes and buck teeth. That's the only way to achieve harmony and not offend anyone.

      --
      Do you even lift?

      These aren't the 'roids you're looking for.

    14. Re:The Commissar Vanishes by fractoid · · Score: 1

      In an effort to be politically correct, the statue was to include black, white, and Hispanic firefighters. However, it was cancelled in an outcry about rewriting history -- the depicted firefighters are white. Sounds like everyone involved needs to watch this episode of South Park on loop until they understand the error of their ways.
      --
      Rampant carbon sequestration destroyed the Dinosaurs' tropical paradise. I'm here to help repair the damage.
    15. Re:The Commissar Vanishes by Anonymous Coward · · Score: 0

      I did note your smileyface.

      Space is very colourful -- there is a lot of energy in most areas of the whole EM frequency spectrum, including in visible light. The problem is that our eyes are not very good at dealing with anything but a small portion of that spectrum at certain amplitudes, and false colour is useful to compress useful information outside of that window or at very low or very high amplitudes (or contrasts between the two) into something that our eyes are good at dealing with.

      Firstly, most of what Hubble tends to look at is very low amplitude. Its detectors are much better than the ones in our retinas, and the exposure times are much longer and in a much more stable platform than are available in human bodies. Its detectors also react to photons with a wider frequency distribution than our retinas are routinely exposed to, and are located in a volume of space with much less ambient visible-and-infrared light pollution than anywhere on Earth at any time of day.

      (As an aside, our retinas are also adapted to seeing heavily filtered extraterrestrial light, thanks to the transmissivity of the atmosphere and the crystallins in our eye lenses, interference from the magnetic field and the rapid and continual fluctuations or practical isotropies of radiation at various low and high frequencies outside of the visible light range leading to very low signal to noise ratios. Photodetection in the retina is not directly "solar-powered" -- ATP and GTP are dephosphorylated as part of the message transduction cascade, and those are produced by burning blood-borne sugars. That is, detecting any light at all requires energy that is diverted from other metabolic purposes, such as reproduction, and detecting "noise" is wasteful.)

      Removing the Earth components from the interference mix between celestial objects and human eyes eliminates pretty much all of the twinkle and absorption interference, which changes perceived colours of visible celestial objects, as well as revealing more of them thanks to less reflection and other ambient light interference. However human eyes are mounted in not-very-stable systems (blinks, pulse-related tremors, postural changes) and the processing system is not geared towards long exposures. This means that even true-colour Hubble views will look very different from what an eye in the same place could ever observe.

      Moreover, human retinas will detect the reddening or blueing of distant objects accelerating relative to them, but lose the associated infrared or ultraviolet information. Sufficient redshifting or blueshifting makes objects which are bright in the IR or UV spectrum seem very dim to human eyes. False colouring often corrects for this.

      False colouring also reveals details that are well outside the visible light window, even accounting for doppler shifting. This is a handy tool as well.

      Yes, many false coloured views would prove useless as "maps" to the sky for a human observer, but avoiding them because of this is silly -- true colour views from stabilized platforms (even terrestrial ones) with long exposures are equally useless as "maps", much in the same way that time-lapse photography or ultra-high-speed recording are unlikely to help in identifying a germinating seed or the onset of crystal formation by tool-less humans in the wild.

  12. DP Approach by xquark · · Score: 3, Interesting

    This method is quiet interesting, though it falls over in situations where the detail level
    or entropy of the background is as great as the foreground. Also the paper doesn't go into
    too much details about the dynamic programming approach they used to find the path of least
    energy, I guess that aspect of it is patentable. Another thing they could investigate is the
    use of diagonal seams instead of just staggered vertical and horizontal seams.

    All in all a very interesting read.

    --
    Arash Partow's Philosophy: Be a person who knows what they don't know, and not a person who doesn't know.
    1. Re:DP Approach by Anonymous Coward · · Score: 0

      Whats hard about it?
      1. Take the top row of pixels, sort columns in ascending order of energy
      2. Take first column from the list (could weigh by image position, starting at center)
      3. Test the next row, same column, as well as the column left and column right, whichever is lowest, add it to the path
      4. repeat step 3 with next row for each row left

      This is a brilliant concept, but the basic unoptimized implementation should take all of 45 minutes

    2. Re:DP Approach by Anonymous Coward · · Score: 0

      May be they used a cost-based path finding algorithm, like A*.
      http://en.wikipedia.org/wiki/A*

    3. Re:DP Approach by The+New+Andy · · Score: 2, Insightful
      I certainly hope it isn't patented, since by just watching the video once (without sound) I was able to to make my own implementation in C in under two hours. I completely agree that it is a cool idea, but I think the reason it is so cool is that the parts they used to build it are all so simple/well known - it is just a really novel combination of ideas that people have already come up with. The idea of a patent (I believe) is so that an inventor won't keep their invention to themselves, so that people can see how it all works and it benefits the public. There aren't any hidden tricks here - the (image-processing) public can easily work out how it is working just by looking at it.

      Just in case I haven't been clear - I think that the idea is awesome, novel and brilliant. And I believe that it is possible for something to be awesome, novel and brilliant but also 'obvious'. Just like in maths when they showed you complex numbers, and how they bring some sanity into the system. Once they give you the hint that the square root of a negative number can be defined, then you can go away and easily derive all the cool things like Euler's form and whatnot. Now replace 'the square root of a negative number can be defined' with 'you can crop a jagged column from an image' and you have a pretty good parallel.

    4. Re:DP Approach by imasu · · Score: 1

      Go for it! I just started my stopwatch.

    5. Re:DP Approach by pclminion · · Score: 2, Informative

      Also the paper doesn't go into too much details about the dynamic programming approach they used to find the path of least energy, I guess that aspect of it is patentable.

      Not so much patentable, as "Easy enough for the reader to implement that it deserves little mention."

    6. Re:DP Approach by John.P.Jones · · Score: 1

      I agree, the entire novelty here is in the idea, the implementation is a rather quite straightforward application of well known, generic techniques. Sounds like the problem statement would make a reasonable question on a introductory graduate algorithms class (using CLR as a text.)

    7. Re:DP Approach by Anonymous Coward · · Score: 0

      Code or it didn't happen!

    8. Re:DP Approach by Anonymous Coward · · Score: 0

      dynamic programming is a standard part of any self-respecting course or book about algorithms. i highly doubt it has anything to do with patents

  13. I Think You'll Find by JamesRose · · Score: 3, Insightful

    10 Seconds of work there, most probably a good deal longer finding a picture that is easy to do it to...

  14. Prior art by SamP2 · · Score: 2, Informative

    The technique was already invented by the Soviets in the '30s:

    Before

    After

    Insignificant person removed.

    1. Re:Prior art by daddyrief · · Score: 0, Offtopic

      dude, idk why you got modded troll, but i love it when a relatively obscure history reference is brought up in the middle of an even better tech article, its like a double whammy of happy.

      --
      "Banking establishments are more dangerous than standing armies." -Thomas Jefferson
    2. Re:Prior art by francium+de+neobie · · Score: 2, Informative

      No, your images is just an often-cited example of what image inpainting could do. And image inpainting has nothing to do with the new resize algorithm talked about in the article, although similar effects are achieved in this specific case.

  15. Whao by Arthur+B. · · Score: 4, Funny

    Ths s rly gret !

    --
    \u262D = \u5350
  16. Impressive-Clip art. by Anonymous Coward · · Score: 0

    "It's also neat to see them use the same technology to remove items (people in this case) from an image with only about 10 seconds of work."

    Newspapers rejoice!

  17. This is pure EVIL! The Devil's Work! by Anonymous Coward · · Score: 0

    Verily, no good will come from this!

    Begone, Ye image distorters from Hell!

  18. Gimp! by larry+bagina · · Score: 5, Interesting

    Although they demonstrated on Windows, a friend of mine is one of their graduate students and was peripherally involved. He said it was originally developed as a GIMP plug in, but moved to a separate Windows app to show off the realtime resizing, etc. Hopefully they'll release the GIMP plugin? More likely Adobe will write them a check and license it to make sure that never happens.

    --
    Do you even lift?

    These aren't the 'roids you're looking for.

    1. Re:Gimp! by Yvanhoe · · Score: 1

      The fact that this paper is publicly presented and not presented as patented technology makes me confident that these 2 persons are real researchers that only want to see their technology used as widely as possible.

      --
      The Wise adapts himself to the world. The Fool adapts the world to himself. Therefore, all progress depends on the Fool.
  19. I can see the spam now by MarkovianChained · · Score: 3, Funny

    Shrink the rest of your body, and increase you penis size by up to 20 pixels!

    1. Re:I can see the spam now by tomhudson · · Score: 1
      "Shrink the rest of your body, and increase you penis size by up to 20 pixels!"

      Open source alternative via the GIMP:

      1. use the "magic wand" tool to select your "magic wand tool"
      2. "convert selection to path"
      3. "stroke path"
      Feel free to experiment by repeatedly stroking with different values ...
  20. Does Anyone Find It Ironic by szyzyg · · Score: 4, Funny

    I find a small irony in the fact that the video is posted on youtube, a site which stretches and squeezes video to fit into a 4:3 aspect ratio

    1. Re:Does Anyone Find It Ironic by Svenne · · Score: 1

      No, just unfortunate.

      --

      Slagborr
  21. Let us be wholly thankful... by Arthur+Grumbine · · Score: 1, Funny

    What is unmentioned in the PDF is that in order to test significance-measuring algorithms for parts of an image, they used goatse. After thousands of tests they were only satisfied once the method returned a blank image.

    Those performing the evaluation of the test results before the final version were forced to be institutionalized.

    I would like to take this opportunity to personally thank those brave soldiers for their unblinking fortitude in this ultimate self-sacrifice. It's times like this when I become truly aware of my own gaping inadequacies, and feel the deep, deep obligation to rectify my own short comings.

    --
    Now that I think about it, I'm pretty sure everything I just said is completely wrong.
    1. Re:Let us be wholly thankful... by kennygraham · · Score: 3, Funny

      It's times like this when I become truly aware of my own gaping inadequacies, and feel the deep, deep obligation to rectify my own short comings.

      hehe... gaping... deep deep... rectum... i mean rectify... hehe

      i need to get some sleep

  22. Thou hast spoke the awful truth by Anonymous Coward · · Score: 0

    Yea, even the Fat Unemployed Internet Artiste has taken exception to this devious work of The Prince of Darkness!

    1. Re:Thou hast spoke the awful truth by Ticklemonster · · Score: 0, Troll
      Whoa, that guy is totally wrapped up with self importance. I can't wait until this program is out so I can get all his pictures and mess them up. Out of pure spite, mind you. I really don't see why he's taking it so hard. What a blow hard.

      Mod me as a troll, go ahead. I know you want to.

      --
      Karma: Bad is the liberal way of saying this guy won't drink the kool aid here on slash dot. I wear my Karma with pride
    2. Re:Thou hast spoke the awful truth by Anonymous Coward · · Score: 0

      Holly crap. That guy is the worst idiot I've heard in ages. Fucking retarted.

  23. Paranoia! It's not just for Gimps by Anonymous Coward · · Score: 2, Insightful

    "More likely Adobe will write them a check and license it to make sure that never happens."

    Is that check going to cover the removal of their paper from above and the ACM archives, let alone OUR archives?

  24. Finally! by Opportunist · · Score: 1

    I TOLD you it's 10 inches! See? SEE???

    (Yes, I know, this thread is worthless without pictures)

    --
    We used to have a Bill of Rights. Now, with the rights gone, all we have left is the bill.
    1. Re:Finally! by One+Childish+N00b · · Score: 1

      Dude, I think I prefer it without...

      --
      Dealing with lawyers would be a lot less tedious if they all looked like Casey Novak.
  25. Not ready for Prime Time by bikerider7 · · Score: 1

    The scheme relies heavily on edge detection. For the simple images shown in the demo (beach sccenes, open sky, plain color backgrounds etc) edge detection is easy. For more realistic photos with complex backgrounds, the approach breaks down.

    1. Re:Not ready for Prime Time by pclminion · · Score: 4, Insightful

      It has nothing to do with edge detection. The algorithm simply detects paths of minimal gradient which lead from one side of the image to the opposite side. This can be used to produce a "pretty picture" which shows the edges -- but this is merely fallout.

      They showed what I thought were several realistic photos with complex backgrounds, and the algorithm did well overall, except on structures where people are closely attuned to exact detail -- such as human faces. If we weren't innately wired to process faces in incredible detail, we wouldn't even notice the distortion.

      So it's not perfect. Can you show me something in this world that is? And I don't think there has been any mention of "prime time" application, whatever that means.

  26. Very ugly by Mprx · · Score: 1

    This introduces very obvious artifacts, and looks worse than simply distorting the aspect ratio. At least in that case you can undo the distortion in your head. Here you are throwing away information at a much higher level than just the details of textures. I'm sure it would look even worse on images that weren't carefully chosen for the demo.

  27. My Implementation by The+New+Andy · · Score: 5, Interesting

    I thought it was pretty cool, so I made my own version after seeing the video. It obviously won't be as awesome as their one, but if you want to play around with it, you can get my C source and have a play around. It is GPL3.

    1. Re:My Implementation by skeeto · · Score: 1

      Awesome! I already used your code to resize some images.

  28. Forget about resizing! by Vexorian · · Score: 1

    Take a look to the end of the video, this one is an awesome method to remove objects from pics. Very interesting.

    --

    Copyright infringement is "piracy" in the same way DRM is "consumer rape"
  29. In Soviet Russia... by Anonymous Coward · · Score: 0

    In Soviet Russia,
    eraser erases you.

  30. removing the intended layout by __aapbzv4610 · · Score: 2, Insightful

    What about artistic photographs? Most photos in that sense are planned to have a certain layout, composition, empty spaces, etc. Say I make a nice panorama shot with a 6:1 aspect ratio. Now my photo that took careful planning is reduced to a 4:3 with all the 'unimportant' spaces removed? Maybe it's just me, but there seem to be lots more instances where this would hurt than help. Journalistic images? Sports photos? Oh, the image can't fit, let's get rid of everything between the 50 and 20 yard lines. There aren't any players standing there. I really only see this being beneficial for web ads. Instead of creating square, vertical, and horizontal versions of the same ad, just make one and let the image be 'resized' accordingly.

    1. Re:removing the intended layout by Anonymous Coward · · Score: 0

      Are you afraid that your images you upload to an online gallery get treated like that?
      That's 100% not going to happen. Ever. It's simply not the target field for such an algorithm.

      Just because there's an algorithm that turns a color image into a greyscale one doesn't mean any image on the web gets converted to greyscale. Why should it be any different with this algorithm? Sometimes i think people rant just for the heck of it

    2. Re:removing the intended layout by Warbothong · · Score: 1
      You're thinking about this the wrong way. Instead of being an easy way to destroy perfect (and hard to take) photographs it is an easy way to improve flawed (and easier to take) photographs. Since a photo can't be retaken it is better to move as much as possible into the computer, in this case composition, which can then be fiddled about with any way the artist likes. If realism is not the point of a picture then this could prove very useful to, for example, remove masses of ugly low-quality houses from a city scape and bring the widely distributed landmarks closer together. Remember, that's just a quick example I thought of, there are many more uses for this.

      I'm hoping it can be implemented in a non-destructive way for image editors (like GEGL, the nondestructive engine for the GIMP we've been promised), since I feel guilty merging layers in the GIMP already, it sacrifices creative flexibility to gain UI managability.

    3. Re:removing the intended layout by Anonymous Coward · · Score: 0

      Um, here is an idea: Don't use this method for those types of photos?

      This is not about some new standard that will force all photographs to follow, it is amazing technique that works when you want to be able to resize something with decent quality.

    4. Re:removing the intended layout by mce · · Score: 1

      If you don't like it, don't use it. If you don't use it, nothing gets destroyed.

      It's not like cropping pictures was a new invention of the digital age either. Good old analoge photographers have been cropping and "zooming during development" (as opposed to while taking the picture) for ages as well in order to improve the artistic aspects of their work, especially for "action" pictures. And newspapers most definitely have been cropping for decades.

      In short, the artistic argument is nonsense. Much more worrying, especially in journalism, is the new/improved possibility to remove relevant content from "get the facts" pictures. But then again, as a concept, that ain't exactly new either.

    5. Re:removing the intended layout by mce · · Score: 1

      Here's a perfect example of what I mean: iwo_jima_crop. Take a look at the 4th picture, compare it to the 5th one, and read the text. See? The "intended layout" was modified on purpose. Twice, actually, if you condider that the whole picture was staged in the first place (as per the same page).

  31. Better Quality Video by Hennell · · Score: 1

    Higher quality mov video here(direct link) if you're interested. (Or you know,if you just want to completely hose their server...)
    ---
    Contronyms: for people who are chuffed by antonyms
    ---

  32. Ouch: by Bairradino · · Score: 1

    That eraser... Start using "Lossy" tecnology for sum good...

  33. Youtube is definately the best medium.... by r_jensen11 · · Score: 1

    because Youtube has outstanding video quality. I mean, Youtube does to video what the Playstation does to audio.

    1. Re:Youtube is definately the best medium.... by Anonymous Coward · · Score: 0

      Actually interestingly enough the original Playstation is considered by many audiophiles to be one of the best CD players out there and has garnered much attention as a high-end audio device. Not quite sure of the specifics or science but a quick Google search of "Playstation+Audiophiles" should point you in the right direction if you're curious.

    2. Re:Youtube is definately the best medium.... by r_jensen11 · · Score: 1

      *whoosh*

  34. image removal by v1 · · Score: 1

    By far the most intersting part of the youtube video was the removal of the two out of five runners on the beach. I realize the removal would probably be a lot more noticeable if the image was higher detail, (what we get to look at on youtube is very low res compared to many practical applications) but it's still pretty stunning how easily and quickly the images could be altered. Very little post-removal editing would be required to selectively and convincingly remove content.

    There's no reason why they could not use this same method to insert content. I'd like to see them add a few people on that beach for example. Simply stretching an area by cloning the region could do so much more if you could define what to put into the region besides similar content.

    --
    I work for the Department of Redundancy Department.
  35. Ariel Shamir by Schraegstrichpunkt · · Score: 2, Informative

    ... not to be confused with Adi Shamir (the cryptographer).

  36. She can just DIAF by Scrameustache · · Score: 1

    Better never get a partner then at all if you are going to hate the person once it doesn't work longer. It is better to have loved and lost than never to have loved at all... even if the bitch dumped you for some guy she met in a bar.
    --

    You can't take the sky from me...

    1. Re:She can just DIAF by aliquis · · Score: 1

      I guess, maybe, but that also well explained to me why people might hate their ex ;)

      I guess it's true with life in general, that it's better to have LIVED even if everything didn't turned out as expected/good, some things probably did. And for those people where it didn't, I feel sad for them.

  37. some code by Arthur+B. · · Score: 3, Interesting

    Too much caffeine in the blog, couldn't sleep... I can't get my hand on the paper but the youtube presentation was extremely clear and I just wrote this C code based on libgd2. Basically it lowers the height of an image by 1 pixel, you can run it multiple time to remove more line.

    http://rafb.net/p/jinioy45.html

    (yeah my coding sucks but it produces awesome results and I reversed engineered the algorithm from youtube so please grovel...)

    I'll improve it soon to remove an arbitrary number of line, horizontally or vertically
      - no recalculation of gradient, only the gradient near the line needs to be recomputed
      - precomputes a file that store the order of the pixel needing to be removed

    I need help with something though, I understand how the algorithm can precompute a file which says in which order pixel should be removed, but I don't see how this can work in *both* direction. Suppose you want to reduce vertically and horizontally at the same time, the horizontal change should completely break the precomputed vertical changes. How would you handle that?

    --
    \u262D = \u5350
    1. Re:some code by Arthur+B. · · Score: 2, Interesting
      --
      \u262D = \u5350
    2. Re:some code by jez9999 · · Score: 2, Funny

      jpegin = fopen("test.png","rb");
        jpegout = fopen("out.png","wb");
      WTF?
    3. Re:some code by Arthur+B. · · Score: 1

      Given enough eyeball every dirty code edit is shallow :)

      --
      \u262D = \u5350
    4. Re:some code by hijinks2121 · · Score: 1

      can you repost the code.. it seems the pastebin removed it

    5. Re:some code by mzs · · Score: 1

      I second this, the example pictures someone else posted were incredible.

    6. Re:some code by The+Raven · · Score: 1

      They DON'T fix it. During a resize of both, the seams are not always 8-way connected... pixels already lost from a horizontal resize can make vertical seams disconnect. It still looks fine though.

      --
      "I will trust Google to 'do no evil' until the founders no longer run it." Hello Alphabet.
  38. A picture shrinks a thousand words... by Anonymous Coward · · Score: 0

    "Which reduces the total size by the same amount, but retains more information than treating every bit of information the same."

    So what MPEG does for video, this does for still images?

  39. Fox may well love this... by kanweg · · Score: 1

    I presume, as soon as a movie version is available. Not that they cannot live without the technology now, but they can rightfully say when distorting things that they leave things into perspective.

    Bert

  40. Part of it sure beats shredding photo's by thrill12 · · Score: 1

    ...as seen in the last part of the video: just separated ? Simply scan your favorite photographs and resize your ex away ! Great stuff, although - ofcourse - on Slashdot this would be a bit useless ;=)

    --
    Slashdot: stuff for news, nerds that matter, matter for news, stuff that nerd
  41. Just think... by Anonymous Coward · · Score: 0

    ...what this technology could do to Goatse... I leave the end-result as an exercise to the more mentally disturbed individual... =(O)=

  42. I know this isn't adding much to the discussion... by svunt · · Score: 1, Funny

    so...fucking...cool

  43. Video is on youtube.... by Tmack · · Score: 2, Informative
    Been up for a while now too, at least I saw it a few days ago...

    Clicky

    Tm

    --
    Support TBI Research: http://www.raisinhope.org
  44. Re:Great - We can do this, but should we? by Albion · · Score: 1

    Seems Orwellian to me. Think of how Oceania's Ministry of Truth could have used this in its rewriting of history.

    It seems to be a way to make distortions of the original information less noticable and therefore more esthetic. Is that really what we want?

  45. Innovation by Anonymous Coward · · Score: 0

    I don't like to derail the conversation. However, here is yet another brilliant Israeli innovation. One of thousands made in a country under constant threat, with an absolute commitment to research and intellectual advancement. However, like Israeli cancer treatments, high-tech and agricultural innovation, will you hear much about this in the media? Of course you won't.

    Heaven forbid however, that Israel should shoot a few terrorists borne from a culture whose only significant export is Jihad. Boy will you read all about it then. Such a shame.

  46. Re:Great - We can do this, but should we? by vasanth · · Score: 4, Insightful

    Your comment seems to be similar to the headline on tabloids.. Just because a technology could be used for negative purposes does not mean that it should not be developed.. If your reasoning was used, we should have all been living in caves by now..

    By your reasoning
    Cars can be used by criminals to travel faster.
    A knife can be used to kill
    Electricity can be used to kill
    Computers can be used by the govt to collect more information abt us effectively

    Is that really what we want?

    see the flaw in the logic?

  47. Re:Great - We can do this, but should we? by Dogtanian · · Score: 2, Funny

    Is that really what we want? Reminds me of that Harry Enfield sketch.... Is that what you want? 'Cos that's what'll happen. Won't make any sense to Americans, but who cares :-)
    --
    "Slashdot - News and Chat Sites Deviant". (Click "homepage" link above for details).
  48. Hey now.. by The+Living+Fractal · · Score: 1

    I see a lot of bitching and moaning about loss of information, about context, etc. People, if you trust something made with pixels you are already way behind. The wise person must be a skeptic, of all things. This technology, like every other, has its place and will be suited for certain things and abused to do others. So I guess what I am saying is it surpises me that a community like Slashdot is getting so many comments point out the obvious. I thought we were progressive enough to avoid that.. guess I should've been more skeptical.

    --
    I do not respond to cowards. Especially anonymous ones.
  49. How would it work for 4:3 stretched to 16:9? by haut · · Score: 1

    All but one person I know with an HDTV stretches their 4:3 content to fit the entire screen. It drives me nuts because nothing looks right. I wonder if this method would produce more natural looking images that fill the screen with 4:3 content. If so these guys could make a fortune licensing to the HDTV manufacturers!

  50. Image insertion and panorama creation by argent · · Score: 1

    The easiest way to insert additional content would seem to be to paste an image of the additional runner in with a similar background, then mark the seam as "unimportant". Similarly, to improve gluing together panoramas you could mark the seams between individual photos as unimportant.

  51. This is like HTML vs PDF by argent · · Score: 1

    Adobe put out a lot f advertisements targeting artists pushing PDF as a superior format to HTML because with PDF the reader can't mess with your layout.

    When I looked at those ads my thought was "man, the PDF version is unreadable at this resolution, but the HTML might look ugly but I can read all of it".

    As PDF came into use my fears were realized. PDF documents are all too often unreadable on anything but the largest screens, and I sometimes have to blow them up even on my 23" cinema display.

    When it comes to preserving your artistic intent, the alternative to "losing layout" may well be losing all the content.

  52. Less impressive when you look at the hires movie by argent · · Score: 1

    It's still impressive, but when you pause and examine the frames in the hi-res movie you see a lot of distortion. The people on the beach look like famine victims by the end of the sequence. Boosting the importance of the other figures would help.

  53. this is a fun idea by slashdotjunker · · Score: 1

    This is a great paper even though the implementation is fairly simplistic. A good idea is one which makes you immediately think of a dozen ways to change it. This is a good idea.

    Consider the simple example:

    hello world
    32332 32333 = 27

    after three cuts we have:

    hll wrld
    333 3333 = 21

    The next cut could be bad. But, with error diffusion

    hll wrld
    445 4433 = 27

    That's better. Now, replace letters with pixels in an image. Then apply a better diffusion method (linear or exponential falloff).

    There are lots of fun ways to modify this basic algorithm.

  54. I don't HATE her, per se.... by Anonymous Coward · · Score: 0

    For me, it's a matter of how we broke up. Cheating hurts. Even now, I don't hate her. It's been almost a freaking year, she's taking my son away from me hour by hour (I'm down to less then ten a week), and even though she's settled on one guy to bang (as opposed to when we first split up when she flitted around like a fucking humming bird), it still hurts. I hate her because I hurt. I love her still today. I guess you could call it mixed feelings, eh? Wow. I'm a bitter fuck.

  55. But how are they going to by Anonymous Coward · · Score: 0

    use this for torturing Palestinians?

  56. Re:I For One by MindKata · · Score: 1

    "It's not compression as we know it, Jim"

    No its not compression as such, but it looks in theory, possible to use this methodology, as another way of doing lossy image compression. It would be interesting to see what kind of results are possible by using this as a means of image compression?.

    It looks very interesting research work. Perhaps it could also be combined with other forms of compression, to get even better image compression ratios?.

    --
    There are 10 kinds of people in the world... those who understand binary and those who don't.
  57. Re:Great - We can do this, but should we? by pablodiazgutierrez · · Score: 1

    While I disagree with your complaint, I have to say I'd like to try the famous "erase that darn Trotsky" trick.

  58. Re-Targeting Software by Anonymous Coward · · Score: 0

    If you want an app (for Windows and Linux) where you can try out this new resizing technique hands-on, take a look at http://www.thegedanken.com/retarget/ - very cool and comparably good performance as well.