4 ms·
Looks really interesting. I'd love to see an animated version that shrinks from large to small.
by rhema 9y ago
Looks really interesting. I'd love to see an animated version that shrinks from large to small.
- sheraz 9y agoLike this one? https://github.com/vivianhylee/seam-carving https://github.com/vivianhylee/seam-carving
- asoto 9y agoI wrote a version of this in javascript with a live demo you can play with at https://alexander.soto.io/seam-carving https://alexander.soto.io/seam-carving
- degenerate 9y agoThat's _extremely_ cool! Thanks for sharing
- peterburkimsher 9y agoYour JavaScript version is very easy to use, and I'm so glad I can upload my own images instead of just using examples! The algorithm itself looks like it needs face (and body) detection to be really useful, though. Example: My girlfriend and I on holiday in Australia. Original: http://peterburk.free.fr/seamCarving/lighthouse.jpg http://peterburk.free.fr/seamCarving/lighthouse.jpg Shrunk: http://peterburk.free.fr/seamCarving/lighthouse_seamCarving.jpg http://peterburk.free.fr/seamCarving/lighthouse_seamCarving....
- lysium 9y agoIn all fairness, the read me says “Todo: face detection”
- peterburkimsher 9y agoThat's true, and I agree with the author! It will be more complicated than it seems, though, because I just tried the GUI version from gabeiscoding above, and got the following result: http://peterburk.free.fr/seamCarving/lighthouse_seamCarvingGUI.jpg http://peterburk.free.fr/seamCarving/lighthouse_seamCarvingG...
- overload119 9y agoAm I the only one getting a laugh out of this? I also tried it on myself and the result was funny.
- khedoros1 9y agoWith a little change to the algorithm, you can mark areas as "must not change" and "must change", basically manually marking areas as "high energy" and "low energy".
- lph 9y agoYeah, but the lighthouse looks great!
- CoryG89 9y agoSuper awesome!
- tangoalpha 9y agoUnable to resize on mobile. Consider giving some margin or padding on the right of the image so one can drag the line to resize.
- elsurudo 9y agoThat's really neat! With my tongue somewhat-in-cheek, I wanted to point you that you may want to be careful with that sample pic of the Eiffel Tower at night! See: https://petapixel.com/2017/10/14/photos-eiffel-tower-night-illegal/ https://petapixel.com/2017/10/14/photos-eiffel-tower-night-i...
- jonathanhefner 9y agoTry this short video from SIGGRAPH 2007: https://www.youtube.com/watch?v=vIFCV2spKtg https://www.youtube.com/watch?v=vIFCV2spKtg
- wtsui 9y agoFlash implementation from 2007 here: http://rsizr.com http://rsizr.com
- squared9 9y agoHere you go: https://www.youtube.com/watch?v=_JAmnloIDnI https://www.youtube.com/watch?v=_JAmnloIDnI