Re:Content-aware image resize library
by mstade on Tuesday January 30, 2018 @08:37PM
(#16270665)
I remember first seeing content aware image scaling at Adobe MAX in Barcelona I think it was. We were completely dumbfounded by what was surely magic happening on stage. When they showed removing objects we just lost it, jaws on the floor and all. That was a fun conference.
[ Parent
| on HN ]
I'm the author of this library. The algorithm permits to remove an object from the image, only it needs somehow to be localized. After localization it can be applied to that area a higher energy map, which means that part will be avoided by the seam carver. I will implement a face detection algorithm to automatically exclude faces to get not altered by the carver.
There are a few interesting things to explore in that field, with different twists:
https://algorithmia.com/algorithms/opencv/SmartThumbnail
https://blog.twitter.com/engineering/en_us/topics/infrastruc...
Re:Content-aware image resize library
by prokoudine on Wednesday January 31, 2018 @10:15AM
(#16274435)
Out of curiosity, liblqr was not good enough for you? :)
See also the Patch-Match algorithm:
http://gfx.cs.princeton.edu/pubs/Barnes_2009_PAR/index.php
(Licensed by Adobe for noncommercial research use only.)
Yeah Adobe sure had a lot of magic to show in that conference.
It's super fun but I can't think of many real-world uses. Maybe in subtle, element-wise stretching and reshaping as part of more complex editing? Squeezing images is a huge no-no in any graphic design, and while content-aware resizing is a neat trick to avoid the most glaring problems, it's still image squeezing. You'd rather just crop the image or choose a different one.
> Squeezing images is a huge no-no in any graphic design
Surely this is true in journalism. I find it hard to believe it's true in ad work.